能让它在FF里跑起来么,该如何解决
发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
能让它在FF里跑起来么
<!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>
------解决方案--------------------
在FF下不支持filter
------解决方案--------------------
children 也不兼容
楼主去 懒人图库 看看 有很多例子
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
ie6下png图片透明色解析为灰色,如何解决?
<div class="Self-navigation">
<ul>
<li><a href="#" class="login-li">登录...
-
.net 如何载入页面
是这样的,页面分为 1 、top.aspx 2、middle.aspx 3、buttom.aspx
现在就是在index.aspx 不知道如何引用top.asp...
-
ie下面序号只有1
<html>
<head>
<meta charset="gb2312" />
<style>
li {
width:100px;
height:20px;
border:1px dashed red;
}...
-
谈谈Javascript那些操蛋的事(一)?
1. 永远不要写function _name(){…}的形式,要养成var _name=function(){}的习惯。
“Javascri...
-
求解:这个程序为什么只能在ie中正常显示,其他的浏览器都显示不了
<td width="806" valign="top" >
<table width="100%" border="0...
-
Chrome中Margin 的问题
为什么设置的margin值,和实际的margin值,有1px的差别?
这是我设置的值
element.style {
margin-left: 10px;
...
-
關於facebook的奇怪問題
經過很久很久的折騰 我居然發現了這個問題
首先是大家找一個http連接的地址
隨便一個網址 自己加上url=...
-
用VB,VC 写的现有桌面软件,如何做成嵌入到WEB页面那样?
看到一些网站,可以在线编辑WORD文档
也看到一些产品,当然是能连上互联网...
-
关于CAS单点登录的SSL证书问题
最近老大让我实现几个系统的单点登录,我想用CAS实现单点登录,请教一下,SSL证书必须使用吗?如果是公司...
-
动态网页和静态网页的区别
各位大侠:
百度百科,定位动态网页有以下几点:
(1)动态网页一般以数据库技术为基础,可以大大降...