html出现兼容性问题

拼吧 发布于 2011/11/03 17:51
阅读 2K+
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

问题是在遨游下可以正常实现鼠标在图片上就换另一张图,点击图片链接到相应网页,但在IE或360下都不行。。。求指导求指导。。代码如下:

<html>
<head>
<title>圣诞节快乐</title>
<script type="text/javascript">
function mouseOver1()
{
   document.gift1.src ="素材/picture/礼物盒02.gif"
}
function mouseOut1()
{
   document.gift1.src ="素材/picture/礼物盒01.png"
}
function mouseOver2()
{
   document.gift2.src ="素材/picture/礼物盒04.gif"
}
function mouseOut2()
{
   document.gift2.src ="素材/picture/礼物盒03.png"
}
function mouseOver3()
{
   document.gift3.src ="素材/picture/礼物盒06.gif"
}
function mouseOut3()
{
   document.gift3.src ="素材/picture/礼物盒05.png"
}
</script>
</head>
<body background="素材/picture/圣诞树.gif">
<p>
<a href="素材/gift1.html">
<img style="margin-left:450px;margin-top:200px" width="150" height="150" name="gift1"
     src="素材/picture/礼物盒01.png"
     onmouseover="mouseOver1()" onmouseout="mouseOut1()"/>
</a>
<a href="素材/gift2.html">
<img style="margin-left:550px" width="150" height="150" name="gift2"
     src="素材/picture/礼物盒03.png"
     onmouseover="mouseOver2()" onmouseout="mouseOut2()"/>
</a>
<a href="素材/gift3.html">
<img style="margin-left:700px" width="150" height="150" name="gift3"
     src="素材/picture/礼物盒05.png"
     onmouseover="mouseOver3()" onmouseout="mouseOut3()"/>
</a>
</p>
</body>
</html> 

加载中
0
铂金小猪
铂金小猪
你不觉得你这个写法太苦逼了吗????
0
_K_
_K_
该评论暂时无法显示,详情咨询 QQ 群:点此入群
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部