图片轮换效果,如何兼容IE6(IE8正常,IE6下显示异常)
<%@LANGUAGE="JAVASCRIPT"CODEPAGE="936"%><!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transi...
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="imgbye/Styles.css">
<link href="style1.css" rel="stylesheet" type="text/css" />
<link href="menu.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="top">
<ul class="round">
<li><a href="jdshow.asp?ID=125"><img src="images/header1.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=123"><img src="images/header2.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header3.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=121"><img src="images/header4.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header5.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header6.jpg" alt="" /></a></li>
</ul>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/jquery.roundabout.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var interval;
$('.round')
.roundabout()
.hover(
function () {
clearInterval(interval);
},
function () {
interval = startAutoPlay();
}
);
interval = startAutoPlay();
});
function startAutoPlay() {
return setInterval(function () {
$('ul:eq(1)').roundabout_animateToNextChild();
}, 3000);
}
</script>
</div>
</body>
</html>
JS代码如下
出现的问题是:在IE8下正常显示,IE6显示位置不对,因为字数太多了,JS代码发不上去,请高手hi我一下,我发JS代码过去,帮我个忙,万分感谢! 展开
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="imgbye/Styles.css">
<link href="style1.css" rel="stylesheet" type="text/css" />
<link href="menu.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="top">
<ul class="round">
<li><a href="jdshow.asp?ID=125"><img src="images/header1.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=123"><img src="images/header2.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header3.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=121"><img src="images/header4.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header5.jpg" alt="" /></a></li>
<li><a href="jdshow.asp?ID=124"><img src="images/header6.jpg" alt="" /></a></li>
</ul>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/jquery.roundabout.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var interval;
$('.round')
.roundabout()
.hover(
function () {
clearInterval(interval);
},
function () {
interval = startAutoPlay();
}
);
interval = startAutoPlay();
});
function startAutoPlay() {
return setInterval(function () {
$('ul:eq(1)').roundabout_animateToNextChild();
}, 3000);
}
</script>
</div>
</body>
</html>
JS代码如下
出现的问题是:在IE8下正常显示,IE6显示位置不对,因为字数太多了,JS代码发不上去,请高手hi我一下,我发JS代码过去,帮我个忙,万分感谢! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询