很Cool and Cool 的图形渐隐导航菜单栏 dn001 2009-06-21 08:18:50 <head> <script language="JavaScript"> //左边 var left_img="<a href=http://www.knowsky.com><img src=http://www.knowsky.com/upfiles/20060211/20060211102048_newyear1.gif width=110 height=306 border=0></a>"; //右边 var right_img="<a href=http://www.knowsky.com><img src=http://www.knowsky.com/upfiles/20060211/20060211101929_newyear2.gif width=110 height=306 border=0></a>"; var leftimgheight window.screen.width>800 ? leftimgheight=600:leftimgheight=100 function myloadright() { myright.style.top=document.body.scrollTop+document.body.offsetHeight-leftimgheight; myright.style.left=document.body.offsetWidth-100; mymove(); } function mymove() { myright.style.top=document.body.scrollTop+document.body.offsetHeight-leftimgheight; myright.style.left=document.body.scrollLeft+document.body.offsetWidth-135; setTimeout("mymove();",50) } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true) var imgheight var imgleft window.screen.width>800 ? imgheight=600:imgheight=100 window.screen.width>800 ? imgleft=3:imgleft=122 function myload() { myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight; myleft.style.left=imgleft; leftmove(); } function leftmove() { myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight; myleft.style.left=imgleft; setTimeout("leftmove();",80) } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true) document.write("<div id=myleft style='position: absolute;width:80;top:0;left:5;visibility: visible;z-index: 1'>"+left_img+"</div>"); myload() document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>"+right_img+"</div>"); myloadright() </script> </head> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>