图片效果
请教各位,以下代码是图片处理效果,但为什么我做不出来呢?究竟错在哪里呢?希望高手闷指点:<script id=code language=JavaScript>
var Ga=new Array()
Ga[0]="images/01.jpg";
Ga[1]="images/02.jpg";
Ga[2]="images/03.jpg";
Ga[3]="images/04.jpg";
Ga[4]="images/05.jpg";
Ga[5]="images/06.jpg";
var hayasa=4000 <!-- //两个图片之间延迟时间,4000等于4秒 -->
var suu =1;
var iTransNumber=0;
var garTransitions = new Array();
garTransitions[1] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='star' motion='out')";
garTransitions[2] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='diamond' motion='in')";
garTransitions[3] = "progid:DXImageTransform.Microsoft.Iris(irisStyle='cross' motion='out')";
for (kazu=0;kazu<Ga.length;kazu++){
kirikaeGa[kazu]=new Image()
kirikaeGa[kazu].src=Ga[kazu]}
function kirikae(){
if (window.createPopup)
rittai.style.filter = garTransitions[iTransNumber];
iTransNumber++;
if(iTransNumber==garTransitions.length)
iTransNumber=0;
if (window.createPopup)
rittai.filters[0].apply();
document.images.rittai.src=kirikaeGa[suu].src;
if (window.createPopup)
rittai.filters[0].play();
suu++;
if (suu==kirikaeGa.length)
suu=0;
setTimeout("kirikae()",hayasa)}
window.onload=new Function("setTimeout('kirikae()',hayasa)")
</script>
<p align="center">
<img src="images/02.jpg" name="rittai" width=400 height=300 border=0 style="filter:progid:DXImageTransform.Microsoft.Iris(irisStyle='diamond' motion='in')">
</p>