您现在的位置是:首页 > 电脑技术查询 > web开发

火狐狸支持滤镜(filter)吗?该怎么处理

编辑:chaxungu时间:2022-10-02 23:22:50分类:web开发

火狐狸支持滤镜(filter)吗?
我写一了段代码,实现在单击”下一张“时,用过渡滤镜显示下一张照片。
在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.
===================================================

------解决方案--------------------
不支持
------解决方案--------------------
那是微软的东西
------解决方案--------------------
no!