一个图片轮换效果的JS
<SCRIPT language=JavaScript>
<!--
var slidespeed=3000
//播放图片
var slideimages=new Array("http://www.wangge.net/photo/ShowPic/JP-XBJNZ.jpg",
"http://www.wangge.net/photo/ShowPic/CN-LZL.jpg",
"http://www.wangge.net/photo/ShowPic/JP-LHZF.jpg",
"http://www.wangge.net/photo/ShowPic/KO-LEZ.jpg",
"http://www.wangge.net/photo/ShowPic/CN-HSY.jpg",
"http://www.wangge.net/photo/ShowPic/KO-LNY.jpg",
"http://www.wangge.net/photo/ShowPic/KO-HCY.jpg")
//链接地址
var slidelinks=new Array ("Main.asp?StarName=榎本加奈子","Main.asp?StarName=林志玲","Main.asp?StarName=濑户早妃","Main.asp?StarName=李恩宙","Main.asp?StarName=黄圣依","Main.asp?StarName=李娜英","Main.asp?StarName=韩彩英")
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 Pic_Show(){
//window.location=slidelinks[whichlink]
window.open(slidelinks[whichlink],'frmright')
}
//-->
</SCRIPT>
<A href="javascript:Pic_Show()"><IMG
style="FILTER: progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"
height=150
src="http://www.wangge.net/photo/ShowPic/JP-XBJNZ.jpg"
width=378 border=0 name=slide></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>
<!--
var slidespeed=3000
//播放图片
var slideimages=new Array("http://www.wangge.net/photo/ShowPic/JP-XBJNZ.jpg",
"http://www.wangge.net/photo/ShowPic/CN-LZL.jpg",
"http://www.wangge.net/photo/ShowPic/JP-LHZF.jpg",
"http://www.wangge.net/photo/ShowPic/KO-LEZ.jpg",
"http://www.wangge.net/photo/ShowPic/CN-HSY.jpg",
"http://www.wangge.net/photo/ShowPic/KO-LNY.jpg",
"http://www.wangge.net/photo/ShowPic/KO-HCY.jpg")
//链接地址
var slidelinks=new Array ("Main.asp?StarName=榎本加奈子","Main.asp?StarName=林志玲","Main.asp?StarName=濑户早妃","Main.asp?StarName=李恩宙","Main.asp?StarName=黄圣依","Main.asp?StarName=李娜英","Main.asp?StarName=韩彩英")
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 Pic_Show(){
//window.location=slidelinks[whichlink]
window.open(slidelinks[whichlink],'frmright')
}
//-->
</SCRIPT>
<A href="javascript:Pic_Show()"><IMG
style="FILTER: progid:DXImageTransform.Microsoft.Pixelate(MaxSquare=15,Duration=1)"
height=150
src="http://www.wangge.net/photo/ShowPic/JP-XBJNZ.jpg"
width=378 border=0 name=slide></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>