JAVA在Firefox 中无法显示

阅读:4621回复:2
楼主#
以下一段代码在IE浏览器里显示正常
为什么在firefox里无法显示?
后来我把image1替换成document.getElementById("image1")
但还是不对
查看地址:http://www.sinodoor.com 中间大flash下的多张循环显示的图片
请帮忙解决一下,再此深表谢意!!!

 <table width="200" height="219" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign=middle><IMG id=image1
style="FILTER: revealTrans(Duration=4.0, Transition=1); VISIBILITY: hidden"
src="images/001.jpg" border=0></td>
<SCRIPT>
var imgs = new Array(3);
imgs[0] = "images/001.jpg";
imgs[1] = "images/002.jpg";
imgs[2] = "images/003.jpg";
imgs[3] = "images/004.jpg";
var maximg = 4;
curimg = -1;
function renderit(){
transition = Math.floor(Math.random()*23);
image1.filters.item(0).apply();
image1.filters.item(0).transition =transition;
image1.style.visibility = "";
image1.filters(0).play(2.0);
}

function switchit(){
if(typeof(image1)!='undefined' && image1 !=null){
image1.style.visibility="hidden";
curimg++;
if( curimg>= maximg) curimg = 0;
image1.src=imgs[curimg];
renderit();
setTimeout(switchit,5000);
}
}
switchit();
</SCRIPT>
</tr>
</table>
2005-03-12 15:44
写私信
1楼#
filter(滤镜)是IE only的东西,所以在Fx没有办法作用喔!
飞翔的风帮我安了网页之翼
银色的雪谱成我的抱风伴静
我们一同悠游在风痕水影
2005-03-12 15:44
写私信
2楼#
风痕影:filter(滤镜)是IE only的东西,所以在Fx没有办法作用喔!回到原帖

re...
虽然感觉filter是个很有表现力的东西,但不标准的东西还是抛弃算了