三级下拉菜单[网页特效] dn001 2009-06-21 08:16:17 <!-- http://bbs.knowsky.com --> <!--脚本说明: 把如下代码加入<body>区域中--> <SCRIPT language="JavaScript"> <!-- today=new Date(); jran=today.getTime(); function rnd() { ia=9301; ic=49297; im=233280; jran = (jran*ia+ic) % im; return jran/(im*1.0); }; function rand(number) { return Math.ceil(rnd()*number); }; document.write("<CENTER>"); for(i=1;i<=1;i++) { myNum=(rand(6)); //改成你要随机显示的图片数; if(myNum == 1) document.write("<img src='http://img.pc004.com/p/2009-0621/20090621081618200.gif'>"); if(myNum == 2) document.write("<img src='http://www.knowsky.com/images/geren.jpg'>"); //图片路径,可用http:// if(myNum == 3) document.write("<img src='http://www.knowsky.com/images/468_60.gif'>"); if(myNum == 4) document.write("<img src='http://www.knowsky.com/images/shangye.jpg'>"); if(myNum == 5) document.write("<img src='http://www.knowsky.com/images/qiye.jpg'>"); if(myNum == 6) document.write("<img src='http://www.knowsky.com/images/host.jpg'>"); else { document.write(); } }; document.write("</CENTER>"); //--> </SCRIPT>