我写一了段代码,实现在单击”下一张“时,用过渡滤镜显示下一张照片。
在IE中完全正常,但在FF下,没有反应,无出错提示。请各位高手指点。
代码如下:
==============================================
  var i=1,maxphoto=6;
function nextClick(){
i++;
if ( i>maxphoto)  {i=1;};
showPhoto();
        
        }function showPhoto(){
document.getElementById("newPhoto").filters(0).Transition=23;
        
        document.getElementById("newPhoto").filters(0).apply();


        document.getElementById("newPhoto").src="big_photo/New_"+i+".jpg";
         document.getElementById("newPhoto").filters(0).play();
        


}newPhoto为IMG的id.
===================================================