仿當(dāng)當(dāng)下拉框特效

字號(hào):


    仿當(dāng)當(dāng)下拉框特效
    代碼:
    <!doctype html public -//w3c//dtd xhtml 1.0 transitional//en>
    <html xmlns=http://www.w3.org/1999/xhtml>
    <head>
    <title> 折疊效果特效</title>
    <meta http-equiv=content-type content=text/html; charset=gb2312 />
    <meta http-equiv=content-language content=zh-cn />
    <meta name=description content= />
    <script language=javascript>
    function pucker_show(name,no,hiddenclassname,showclassname) {
    for (var i=1 ;i<6 ;i++ )
    {
    document.getelementbyid(name+i).classname=hiddenclassname;
    }
    document.getelementbyid(name+no).classname=showclassname;
    }
    </script>
    <style type=text/css>
    * {padding:0; margin:0; font:normal 12px 宋體; text-decoration:none; color:#000;}
    a {color:#369;}
    a:hover {color:#f00; text-decoration:underline;}
    #top5 {width:300px; margin:20px; border-bottom:1px solid #ccc;}
    #top5 div {clear:left; padding:5px 0 0 15px; background:#fff url(1.gif) no-repeat left 5px; border-top:1px solid #ccc;}
    #top5 #box2 {background-image: url(2.gif);}
    #top5 #box3 {background-image: url(3.gif);}
    #top5 #box4 {background-image: url(4.gif);}
    #top5 #box5 {background-image: url(5.gif);}
    #top5 .show img {float:left; width:60px; height:85px; margin:0 5px 5px 0;}
    #top5 .show h2 {padding:5px 0;}
    #top5 .show p {line-height:150%;}
    #top5 .hidden {background-position:left center;background-color:#ffd;}
    #top5 .hidden img {display:none;}
    #top5 .hidden p {display:none;}
    </style>
    </head>
    <body>
    <div id=top5>
    <div class=show id=box1 onmouseover=pucker_show('box',1,'hidden','show')>
    <img src=1.jpg alt=明朝那些事兒 />
    <h2><a href=#>網(wǎng)站制作學(xué)習(xí)網(wǎng)1</a></h2>
    <p>作者:折疊效果<br />出版社:中國友誼出版社<br />出版時(shí)間:2006-9-1</p>
    </div>
    <div class=hidden id=box2 onmouseover=pucker_show('box',2,'hidden','show')>
    <img src=2.jpg alt=別笑,我是英語單詞書 />
    <h2><a href=#>網(wǎng)站制作學(xué)習(xí)網(wǎng)2</a></h2>
    <p>作者:折疊效果<br />出版社:陜西師范大學(xué)出版社<br />出版時(shí)間:2007-9-1</p>
    </div>
    <div class=hidden id=box3 onmouseover=pucker_show('box',3,'hidden','show')>
    <img src=3.jpg alt=求醫(yī)不如求己 />
    <h2><a href=#>網(wǎng)站制作學(xué)習(xí)網(wǎng)3</a></h2>
    <p>作者:折疊效果<br />出版社:中國中醫(yī)藥出版社<br />出版時(shí)間:2007-2-1</p>
    </div>
    <div class=hidden id=box4 onmouseover=pucker_show('box',4,'hidden','show')>
    <img src=4.jpg alt=不生病地智慧 />
    <h2><a href=#>網(wǎng)站制作學(xué)習(xí)網(wǎng)4</a></h2>
    <p>作者:折疊效果<br />出版社:江蘇文藝出版社<br />出版時(shí)間:2007-8-1</p>
    </div>
    <div class=hidden id=box5 onmouseover=pucker_show('box',5,'hidden','show')>
    <img src=5.jpg alt=求醫(yī)不如求己2 />
    <h2><a href=#>網(wǎng)站制作學(xué)習(xí)網(wǎng)5</a></h2>
    <p>作者:折疊效果<br />出版社:江蘇版社<br />出版時(shí)間:2007-10-1</p>
    </div>
    </div>
    </body>
    </html>