指引网

当前位置: 主页 > 网页制作 > WEB开发 >

图片向上滚动代码

来源:网络 作者:佚名 点击: 时间:2017-07-19 00:20
[摘要] DIVid=demoonmouseover=ii=1style=OVERFLOW:hidden;HEIGHT:500pxonmouseout=ii=0 DIVid=demo1 divalign=center ahref='#'target='_blank'imgsrc='images/k.jpg'width='125'height='125'vspace='5'border='0'class='tu'/abrahref='#'target='_blank'图片1/abr ahref='#

<DIV id=demo onmouseover=ii=1 style="OVERFLOW: hidden; HEIGHT: 500px" onmouseout=ii=0>
<DIV id=demo1>
<div align="center">
<a href='#' target='_blank'><img src='images/k.jpg' width='125' height='125' vspace='5' border='0' class='tu'></a><br><a href='#' target='_blank'>图片1</a><br>
<a href='#' target='_blank'><img src='images/j.jpg' width='125' height='125' vspace='5' border='0' class='tu'></a><br><a href='#' target='_blank'>图片2</a><br>
<a href='#' target='_blank'><img src='images/I.jpg' width='125' height='125' vspace='5' border='0' class='tu'></a><br><a href='#' target='_blank'>图片3</a><br>
<a href='#' target='_blank'><img src='images/h.jpg' width='125' height='125' vspace='5' border='0' class='tu'></a><br><a href='#' target='_blank'>图片4</a><br>
<a href='#' target='_blank'><img src='images/g.jpg' width='125' height='125' vspace='5' border='0' class='tu'></a><br><a href='#' target='_blank'>图片5</a><br>
</div>
</DIV>
<DIV id=demo2></DIV>
<SCRIPT>
var ii=0;t=demo.scrollTop
demo2.innerHTML=demo1.innerHTML
function qswhMarquee(){
if (ii==1)return
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else
demo.scrollTop++
}
setInterval(qswhMarquee,20)
</SCRIPT> 

------分隔线----------------------------