照片輪撥語法,筆記用。資料參考來源是這篇:http://wonderwind.blog138.fc2.com/blog-entry-142.html

<script Language="JavaScript1.1">
var slidespeed=2000
var slideimages=new Array("照片網址1",
"照片網址2",
"照片網址3")
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>
<img src="" width="設定照片寬度" name="slide" style="filter:progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)" align="middle" border="0">
<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>

創作者介紹

大俠夫人的家

大俠夫人(Canru) 發表在 痞客邦 PIXNET 留言(0) 人氣()