Javascript imitation Taobao home page product category list effect

Source: Internet
Author: User
Tags visibility
Tip: you can modify some code before running

<!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><title></title><meta http-equiv="content-type" content="text/html;charset=gb2312"><!--把下面代码加到<head>与</head>之间--><style type="text/css"><!--body{font-size:12px;}#shone1,#shtwo1{text-align:center;padding:9px;}.huixuxian{border-bottom-width:1px;border-bottom-style:dashed;border-bottom-color:#cccccc;}.huixuxian ul{margin:0px;padding:0px;list-style-type:none;}.huixuxian li{padding-top:2px;padding-bottom:2px;margin-top:2px;margin-bottom:2px;background-color:#f3f3f3;}.huixuxian li.hover{border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:#ff0000;padding-top:2px;padding-bottom:2px;margin-top:2px;margin-bottom:2px;border-top-width:2px;border-left-width:2px;border-top-style:solid;border-left-style:solid;border-top-color:#ff0000;border-left-color:#ff0000;background-color:#ffffff;}#apdiv1,#apdiv4{position:absolute;z-index:3;visibility:hidden;}#apdiv3,#apdiv6{position:absolute;z-index:2;border:2px solid #ff0000;visibility:hidden;background-color:#ffffff;margin-top:2px;margin-left:0px;}--></style><script type="text/javascript"><!--function setover(name,cursel,n){for(i=1;i<=n;i++){var menu=document.getelementbyid(name+i);menu.classname=i==cursel?"hover":"";}}function setout(name,cursel,n){for(i=1;i<=n;i++){var menu=document.getelementbyid(name+i);menu.classname=i==cursel?"":"hover";}}function mm_showhidelayers() { //v9.0var i,p,v,obj,args=mm_showhidelayers.arguments;for (i=0; i<(args.length-2); i+=3)with (document) if (getelementbyid && ((obj=getelementbyid(args[i]))!=null)) { v=args[i+2];if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }obj.visibility=v; }}//--></script></head><body><!--把下面代码加到<body>与</body>之间--><table width="700" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="64" class="huixuxian"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%"> <div id="apdiv1"> <ul> <li id="shone1" onmouseover="setover('shone',1,1);mm_showhidelayers('apdiv1','','show','apdiv2','','hide','apdiv3','','show','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')" onmouseout="setout('shone',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"><br>Quantity<br>Code<br><br></li> </ul> </div> <ul> <li id="shone1" onmouseover="setover('shone',1,1);mm_showhidelayers('apdiv1','','show','apdiv2','','hide','apdiv3','','show','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')" onmouseout="setout('shone',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"><br>Quantity<br>Code<br><br></li> </ul> </td> <td width="93%" valign="top"> <div id="apdiv3" onmouseover="setover('shone',1,1);mm_showhidelayers('apdiv1','','show','apdiv2','','hide','apdiv3','','show','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')" onmouseout="setout('shone',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"> <table width="674" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="651">Sss Sina Fund provides global users with comprehensive and timely Chinese information on the fund, the content covers fund industry trends, fund net worth, fund rankings, fund data, fund rating, fund knowledge, fund forums, fund supermarkets, fund alliances, etc.</td> </tr> <tr> <td>With rich news and comments, detailed data, professional rating systems, active fund manager salons, popular forums and blogs, we provide you with the best service platform, is your considerate financial adviser</td> </tr> <tr> <td width="651">Sina Fund provides global users with comprehensive and timely Chinese information about the fund within 24 hours, the content covers fund industry trends, fund net worth, fund rankings, fund data, fund rating, fund knowledge, fund forums, fund supermarkets, fund alliances, etc.</td> </tr> <tr> <td>With rich news and comments, detailed data, professional rating systems, active fund manager salons, popular forums and blogs, we provide you with the best service platform, is your considerate financial adviser</td> </tr> </table> </div> <div id="apdiv2"> <table width="674" border="0" cellspacing="0" cellpadding="3" onmouseover="setover('shone',1,1);mm_showhidelayers('apdiv1','','show','apdiv2','','hide','apdiv3','','show','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')" onmouseout="setout('shone',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"> <tr> <td width="651">Sina Fund provides global users with comprehensive and timely Chinese information about the fund within 24 hours, the content covers fund industry trends, fund net worth, fund rankings, fund data, fund rating, fund knowledge, fund forums, fund supermarkets, fund alliances, etc.</td> </tr> <tr> <td>With rich news and comments, detailed data, professional rating systems, active fund manager salons, popular forums and blogs, we provide you with the best service platform, is your considerate financial adviser</td> </tr> </table> </div> </td> </tr> </table> </td> </tr> <tr> <td class="huixuxian"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%"> <div id="apdiv4"> <ul> <li id="shtwo1" onmouseover="setover('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','show','apdiv5','','hide','apdiv6','','show')" onmouseout="setout('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"><br>Server<br>Installation<br><br></li> </ul> </div> <ul> <li id="shtwo1" onmouseover="setover('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','show','apdiv5','','hide','apdiv6','','show')" onmouseout="setout('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"><br>Server<br>Installation<br><br></li> </ul> </td> <td width="93%" valign="top"> <div id="apdiv6" onmouseover="setover('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','show','apdiv5','','hide','apdiv6','','show')" onmouseout="setout('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"> <table width="674" border="0" cellspacing="0" cellpadding="3"> <tr> <td width="651">The Pacific female apparel channel provides a massive volume of fashion apparel information, first-hand materials for new clothing products, and teaches you how to match various types of clothing to create your own Devil's body and perfect body</td> </tr> <tr> <td>Clothing brand, clothing brand ranking, clothing brand list, clothing brand ranking-buy clothing first on the brand family network ...... Dai Feifei is the endorsement of Anta women's fashion series clothing photo exquisite pictures</td> </tr> <tr> <td width="651">The Pacific female apparel channel provides a massive volume of fashion apparel information, first-hand materials for new clothing products, and teaches you how to match various types of clothing to create your own Devil's body and perfect body</td> </tr> <tr> <td>Clothing brand, clothing brand ranking, clothing brand list, clothing brand ranking-buy clothing first on the brand family network ...... Dai Feifei is the endorsement of Anta women's fashion series clothing photo exquisite pictures</td> </tr> <tr> <td width="651">The Pacific female apparel channel provides a massive volume of fashion apparel information, first-hand materials for new clothing products, and teaches you how to match various types of clothing to create your own Devil's body and perfect body</td> </tr> </table> </div> <div id="apdiv5"> <table width="674" border="0" cellspacing="0" cellpadding="3" onmouseover="setover('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','show','apdiv5','','hide','apdiv6','','show')" onmouseout="setout('shtwo',1,1);mm_showhidelayers('apdiv1','','hide','apdiv2','','show','apdiv3','','hide','apdiv4','','hide','apdiv5','','show','apdiv6','','hide')"> <tr> <td width="651">The Pacific female apparel channel provides a massive volume of fashion apparel information, first-hand materials for new clothing products, and teaches you how to match various types of clothing to create your own Devil's body and perfect body</td> </tr> <tr> <td>Clothing brand, clothing brand ranking, clothing brand list, clothing brand ranking-buy clothing first on the brand family network ...... Dai Feifei is the endorsement of Anta women's fashion series clothing photo exquisite pictures</td> </tr> </table> </div> </td> </tr> </table> </td> </tr></table></body></html>
Tip: you can modify some code before running
Related Article

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.