<head>
<script language='javascript'>
var fadeimages=new Array();
fadeimages[0]="image/KCM/NET电子商务网站首页_05.gif";
fadeimages[1]="image/pic/pic02.jpg";
fadeimages[2]="image/pic/pic03.jpg";
fadeimages[3]="image/pic/pic01.jpg";
fadeimages[4]="image/pic/pic04.jpg";
var preloadedimages=new Array();
for(p=0;p<fadeimages.length;p++);{
preloadedimages[p]=new Image();
preloadedimages[p].src=fadeimages[p];
}
function showimage() {
var TransEffect=parseInt(Math.random()*23);
img.filters.item(0).Transition=TransEffect;
img.filters.item(0).Apply();
img.src=fadeimages[parseInt(Math.random()*5)];
img.filters.item(0).Play();
showeffect();
}
function showeffect()
{
setTimeout("showimage()",5000) ;
}
</script>
</head>
<body onload="showeffect();" >
<img id="img" src="image/pic/pic01.jpg" style="filter:revealTrans(Transition=0,Duration=3)" />
</body>
</html>
我想把放在表格某个地方用它来实现图片变换效果
怎么弄?
希望高手指点一二!
谢谢!