| <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <Html xmlns = "http://www.w3.org/1999/xhtml"> <Head> <Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/> <Title> jQuery enables the mouse to brighten the image </title> <base target = "_ blank"/> <Style type = "text/css"> A {color: white ;} Body {background: #000 ;} Body, div, ul, li, img {padding: 0; margin: 0; border: 0; list-style: none ;} . Hovertreebox {width: 630px; border: 1px solid # ccc; margin: 10px auto; overflow: hidden; padding: 10px 0 0 10px ;} . Hovertreebox li {width: 200px; height: 186px; float: left; margin-right: 10px; margin-bottom: 10px; cursor: pointer ;} </Style> <Script type = "text/javascript" src = "jquery/jquery-1.11.2.min.js"> </script> <Script type = "text/javascript"> $ (Function (){ $ ('. Hovertreebox li'). mouseover (function (e ){ $ (This). siblings (). stop (). fadeTo (500, 0.4 ); }); $ ('. Hover' + 'treebox li'). mouseout (function (e ){ $ (This). siblings (). stop (). fadeTo (500,1 ); }); }) </Script> </Head> <Body> <Div style = "color: white"> jQuery highlights the cursor entries in the image list <Br/> </div> <Div class = "hovertreebox" id = "hovertreelist"> <Ul> <Li> </li> <Li> </li> <Li> </li> <Li> </li> <Li> </li> <Li> </li> </Ul> </Div> </Body> </Html> |