javascript画像のスクロール
4259 ワード
<div style="width:9999px;">
<ul id="marquePic1_1">
<li>
<dl>
<dt><a href="/zjtd/452.html" target="_blank" rel="nofollow"> </a></dt>
<dd class="img"><a href="/zjtd/452.html" target="_blank" rel="nofollow"><img src="/statics/images/fk/1-1305211KA5533.jpg" width="46" height="46"></a></dd>
<dd class="txt"><a href="#" target="_blank"> </a></dd>
</dl>
</li>
<li>
<dl>
<dt><a href="/zjtd/452.html" target="_blank" rel="nofollow"> </a></dt>
<dd class="img"><a href="/zjtd/452.html" target="_blank" rel="nofollow"><img src="/statics/images/fk/1-1305211KA5533.jpg" width="46" height="46"></a></dd>
<dd class="txt"><a href="#" target="_blank"> </a></dd>
</dl>
</li>
<li>
<dl>
<dt><a href="/zjtd/452.html" target="_blank" rel="nofollow"> </a></dt>
<dd class="img"><a href="/zjtd/452.html" target="_blank" rel="nofollow"><img src="/statics/images/fk/1-1305211KA5533.jpg" width="46" height="46"></a></dd>
<dd class="txt"><a href="#" target="_blank"> </a></dd>
</dl>
</li>
<li>
<dl>
<dt><a href="/zjtd/452.html" target="_blank" rel="nofollow"> </a></dt>
<dd class="img"><a href="/zjtd/452.html" target="_blank" rel="nofollow"><img src="/statics/images/fk/1-1305211KA5533.jpg" width="46" height="46"></a></dd>
<dd class="txt"><a href="#" target="_blank"> </a></dd>
</dl>
</li>
</ul>
<ul id="marquePic2_1"></ul>
</div>
<script type="text/javascript">
var speed = 50
marquePic2_1.innerHTML = marquePic1_1.innerHTML
function Marquee() {
if (sswtexp.scrollLeft >= marquePic1_1.scrollWidth) {
sswtexp.scrollLeft = 0
} else {
sswtexp.scrollLeft++
}
}
var MyMar = setInterval(Marquee, speed)
sswtexp.onmouseover = function () { clearInterval(MyMar) }
sswtexp.onmouseout = function () { MyMar = setInterval(Marquee, speed) }
</script>
//重要なのはjsです