网页特效:随浏览器滚动条移动的DIV层 dn001 2009-06-21 08:55:39 <!-- 把如下代码加入<body>区域中 --> <!-- http://www.knowsky.com/js --> <!-- bbs http://www.knowsky.com/bbs--> <script language="JavaScript1.1"> <!-- var slidespeed=3000 var slideimages=new Array("/img/200406301.jpg","/img/200406302.jpg","/img/200406303.jpg","/img/200406304.jpg","/img/200406305.jpg") var slidelinks=new Array("http://js.knowsky.com","http://js.knowsky.com","http://js.knowsky.com","http://js.knowsky.com","http://js.knowsky.com") var imageholder=new Array() var ie55=window.createPopup for (i=0;i<slideimages.length;i++){ imageholder[i]=new Image() imageholder[i].src=slideimages[i] } function gotoshow(){ window.location=slidelinks[whichlink] } //--> </script> <a href="javascript:gotoshow()"><img src="/img/200406301.jpg" title='网页特效' name="slide" border=0 style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"></a> <script language="JavaScript1.1"> <!-- var whichlink=0 var whichimage=0 var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0 function slideit(){ if (!document.images) return if (ie55) document.images.slide.filters[0].apply() document.images.slide.src=imageholder[whichimage].src if (ie55) document.images.slide.filters[0].play() whichlink=whichimage whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0 setTimeout("slideit()",slidespeed+pixeldelay) } slideit() //--> </script>