电脑爱好者,提供IT资讯信息及各类编程知识文章介绍,欢迎大家来本站学习电脑知识。 最近更新 | 联系我们 RSS订阅本站最新文章
电脑爱好者
站内搜索: 
当前位置:首页>> Javascript>>marquee出现时无空白代码(自右向左滚动):

marquee出现时无空白代码(自右向左滚动)

来源:www.cncfan.com | 2006-8-28 | (有5116人读过)

<SCRIPT language=Javascript>
document.write("<table width=550 border=0 cellpadding=0 cellspacing=0 style=BORDER-LEFT: #cccccc 1px solid;BORDER-RIGHT: #cccccc 1px solid>");
document.write(" <tr> ");
document.write(" <td width=550 height=74 align=center class=border01>");
document.write(" <div id=demo style=overflow:hidden;width:550;align=center>");
document.write(" <table border=0 align=center cellpadding=1 cellspacing=1 cellspace=0 >");
document.write(" <tr>");
document.write(" <td valign=top id=marquePic1> ");
document.write(" <table width=100% border=0 cellspacing=0 cellpadding=0>");
document.write(" <tr align=center> ");
document.write(" <td><img src=pic/01.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/02.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/03.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/04.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/05.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/06.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/07.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/08.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/09.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/10.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/11.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/12.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/13.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/14.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/15.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/16.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/17.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/18.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/19.jpg width=97 height=74 hspace=2 border=1></td>");
document.write(" <td><img src=pic/20.jpg width=97 height=74 hspace=2 border=1></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=40;
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>
Javascript热门文章排行
网站赞助商
购买此位置

 

关于我们 | 网站地图 | 文档一览 | 友情链接| 联系我们

Copyright © 2003-2024 电脑爱好者 版权所有 备案号:鲁ICP备09059398号