Picture selected border effect appears

Source: Internet
Author: User

Picture selected border Effect:

When you click the selected picture, the picture can appear with a red border effect.

The code example is as follows:

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title><styletype= "Text/css">#mainboard img{Border:1px solid #cccccc;width:88px;Height:31px;cursor:Pointer; } </style> <Scriptsrc= "Http://libs.baidu.com/jquery/1.9.0/jquery.js"></Script><Scripttype= "Text/javascript"> $(function(){    $("#mainboard img"). Bind ("Click",function(){        $( This). CSS ("Border","1px solid Red"). Siblings (). CSS ("Border","1px solid #cccccc"); }) }) </Script> </Head> <Body> <DivID= "Mainboard">   <imgsrc= "1.gif"class= "B" />   <imgsrc= "2.gif" />   <imgsrc= "3.gif" />   <imgsrc= "4.gif" /> </Div> </Body> </HTML>

The original address is: http://www.51texiao.cn/jqueryjiaocheng/2015/0504/687.html

The most original address is: http://www.softwhy.com/

Picture selected border effect appears

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.