你的位置:| 首页网站建设图片连续滚动的Marquee代码→文章正文  
文章导航


图片连续滚动的Marquee代码

<script type="text/javascript">
document.write('<table align=center width=1280 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>');
document.write(' <tr> ');
document.write(' <td width=774 height=120 align=center class=border01 bgcolor=#FFFFFF>');
document.write(' <div id=demo style=overflow:hidden;width:750;align=center>');
document.write(' <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >');
document.write(' <tr>');
document.write(' <td valign=top bgcolor=ffffff id=marquePic1> ');
document.write(' <table width=90% border=0 cellspacing=0 cellpadding=0>');
document.write(' <tr align=center> ');
document.write(' <td><a href="#" target="new"><img src="/images/upfile/2005-6/20056211721.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="images/U179P8T1D97394F913DT20040614151130_LypeS9hcfA2g.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="/images/upfile/2005-6/200562117233.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="/images/upfile/2005-6/200562117038.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="/images/upfile/2005-6/200562117110.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="images/U179P8T1D97397F913DT20040614151308_EFstLfFG8rqQ.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="images/U179P8T1D97404F913DT20040614151754_oQJ4OVZHXmXH.jpg" width="95" height="86"></a></td>');
document.write(' <td><a href="#" target="new"><img src="images/U179P8T1D97396F913DT20040614151230_OFsgt4J2iBpw.jpg" width="95" height="86"></a></td>');
document.write(' </tr>');
document.write(' </table>');
document.write(' </td>');
document.write(' <td id=marquePic2 valign=top></td>');
document.write(' </tr>');
document.write(' </table>');
document.write(' </div>');
document.write(' </td>');
document.write(' </tr>');
document.write(' </table>');
var speed=30
marquePic2.innerHTML=marquePic1.innerHTML
function Marquee(){
if(demo.scrollLeft>=marquePic1.scrollWidth){
demo.scrollLeft=0
}else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}

</script>
代码说明:


href="#" 图片连接地址
var speed=30 滚动速度1-30(值越小速度越快)


  上一页 1 2 3 4 5 下一页
 
公司简介 在线客服 客服中心 意见反馈 相关法律 隐私条款 广告服务 友情链接
Q链:515347638  电子邮箱:hanen@126.com 粤ICP备05086553