在网上找了一个 图片滚动源码,结果实现不了无缝滚动,我是菜鸟 求大神指点。代码如下:
<!DOCTYPE html>
<head id="Head1" runat="server">
<title>图片滚动</title>
<script src="Scripts/jquery-1.8.2.js" type="text/javascript"></script>
<script src="Scripts/JMetro.js" type="text/javascript"></script>
<style type="text/css">
.metro {
overflow: hidden;
height: 280px;
width: 280px;
margin: 25px;
float: left;
background-color: #CC0000;
}
</style>
</head>
<body>
<h1>有缝处已标记为红色</h1>
<div class="metroCont">
<div class="metro">
<div>
<img width="280px" height="280px" src="img/33.jpg" />
<img width="280px" height="280px" src="img/22.jpg" />
</div>
<script type="text/javascript">
$(".metroCont").jMetroRun(2000, 2000, 280, 1000, 1000);
</script>
</body>
</html>
附上Js & Img
链接: http://pan.baidu.com/s/1mgxduo4 密码: acjt