能让它在FF里跑起来么

CoffeePhoton 2010-11-21 12:57:19

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>


<title>图片轮显</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">





</head>

<body>



<div id="div_img" style="filter:progid:DXImagetransform.Microsoft.GradientWipe(duration=3,gradientSize=0.5,motion=forward ); WIDTH:120px; HEIGHT:120px; border:1px solid #CCCCCC">
<div style="display:block"><A href="###" target=_blank>
<img onmouseover=stop_img(); onmouseout=start_img() height=158 width=553 src="http://www.cssrain.cn/attachments/month_0711/v2007111131533.gif" border=0></A></div>
<div style="display: none"><a href="###" target="_blank">
<img onmouseover=stop_img(); onmouseout=start_img() height=158 width=553 src="http://www.slyw.cn/img/img_2.gif" border=0></a></div>
<div style="display: none"><A href="###" target=_blank>
<img onmouseover=stop_img(); onmouseout=start_img() height=158 width=553 src="http://www.cssrain.cn/attachments/month_0711/v2007111131533.gif" border=0></A></div>
<div style="display: none"><a href="###" target=_blank>
<img onmouseover=stop_img(); onmouseout=start_img() height=158 width=553 src="http://www.slyw.cn/img/img_4.gif" border=0></a></div>
</div>

<script type="text/javascript">
var n=0;
var obj_img = document.getElementById("div_img");
function plays(k){
n=k;
with (obj_img){
obj_img.filters[0].Apply();
for(i=0;i<4;i++)i==k?children[i].style.display="block":children[i].style.display="none";
filters[0].play();
}
}
function stop_img(){clearTimeout(timer)}
function start_img(){
n++;
if(n>3)n=0;
plays(n);
timer=setTimeout("start_img()", 6000)
}
start_img();
</script>


</body>
</html>
...全文
92 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
CoffeePhoton 2010-11-22
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 hch126163 的回复:]
children 也不兼容

楼主去 懒人图库 看看 有很多例子
[/Quote]

嗯 其实我都看到了filters是IE的专利 http://www.39g.com/html/271/277/2010/07/917447620591.htm

想确认一下,没想到还真没替换方法。

懒人图库这些网站我看过,滤镜特效都用到了filter

现在我只能作个判断,IE在才用filter,其他浏览器就不用特效了,唉...
hch126163 2010-11-21
  • 打赏
  • 举报
回复
children 也不兼容

楼主去 懒人图库 看看 有很多例子
CoffeePhoton 2010-11-21
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cj205 的回复:]
在FF下不支持filter
[/Quote]

那这个JS图片轮显的特效就不能在Fire Fox里运行了吗?很喜欢这个特效啊
Mr-Jee 2010-11-21
  • 打赏
  • 举报
回复
在FF下不支持filter

5,006

社区成员

发帖
与我相关
我的任务
社区描述
解读Web 标准、分析和讨论实际问题、推动网络标准化发展和跨浏览器开发进程,解决各种兼容性问题。
社区管理员
  • 跨浏览器开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧