<!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=utf-8" />
<title>图片左右滚动_www.jb200.com</title>
</head>
<body>
<style type="text/css">
<!--
#picScroll {background: #FFF;overflow:hidden;border: 1px dashed #CCC;width: 745px;}
#picScroll img {border: 3px solid #F2F2F2;}
#picSdiv {float: left;width: 800%;}
#picSdiv1 {float: left;}
#picSdiv2 {float: left;}
-->
</style>
<div id="picScroll">
<div id="picSdiv">
<div id="picSdiv1">
<a href="#"><img src="./img/gun/1.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/2.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/3.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/4.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/5.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/6.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/7.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/8.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/9.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/10.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/11.jpg" border="0" width="185" height="240" /></a>
<a href="#"><img src="./img/gun/12.jpg" border="0" width="185" height="240" /></a>
</div>
<div id="picSdiv2"></div>
</div>
</div>
<script language="
javascript">
<!--
var speed=10;
var picS=document.getElementByIdx_x("picScroll");
var picS1=document.getElementByIdx_x("picSdiv1");
function Marquee(){
if(picS.scrollLeft >= picS1.offsetWidth)
picS.scrollLeft =0;
else{
picS.scrollLeft++;
}
}
var MyMar=setInterval(Marquee,speed);
picS.onmouseover=function() {clearInterval(MyMar)};
picS.onmouseout=function() {MyMar=setInterval(Marquee,speed)};
-->
</script>
</body>
</html>