語法如下
<SCRIPT Language="JavaScript1.1">
var slidespeed=3000;
var slideimages=new Array(
"https://lh6.googleusercontent.com/-NvcUrH8EGVA/Uc_4gxAXN5I/AAAAAAAAP3Y/j-e2wEdDOO0/s640/P116080816.jpg",
"https://lh6.googleusercontent.com/-UACLldW1gr8/UXQAEXtsl-I/AAAAAAAAMPI/faIyV-MhBPE/s640/P115060518.jpg",
"https://lh3.googleusercontent.com/-pNCW7jJ_gL4/UXP_23HIgPI/AAAAAAAAMKQ/oKNhQiEm9Bk/s640/P115054812.jpg",
"https://lh3.googleusercontent.com/-HAjOBQJgeMk/UWV3TgDb-CI/AAAAAAAAL5U/d7shhI_Rano/s640/P115026810.jpg");
var imageholder=new Array();
var ie55=window.createPopup;
for (i=0;i<slideimages.length;i++){ imageholder[i]=new Image();
imageholder[i].src=slideimages[i] }
</SCRIPT><img src="" name="slide"style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)" align="middle"><script language="JavaScript1.1">
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();
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0;
setTimeout("slideit()",slidespeed+pixeldelay) };
slideit(); </script>
沒有留言:
張貼留言