岁月留声QtAsp

Qt in Linux , Asp Asp.net Jsp Php in Web

« 严重感冒JAN是几月,FEB是几月,MAR是几月,APR是几月,MAY是几月,JUN是几月,JUL是几月,AUG是几月,SEP是几月,OCT是几月,NOV是几月,DEC是几月 »

图片连续滚动代码横向滚动js代码

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>图片连续滚动代码横向滚动js代码</title>
</head>

<body>
<script type="text/javascript">
//
document.write('<table align=center width=774 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=http://www.365css.cn/1.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="#" target="new"><img src=http://www.365css.cn/2.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="#" target="new"><img src=http://www.365css.cn/4.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="#" target="new"><img src=http://www.365css.cn/5.jpg width=150 height=100 hspace=2 border=0></a></td>');
document.write(' <td><a href="#" target="new"><img src=http://www.365css.cn/6.jpg width=150 height=100 hspace=2 border=0></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>

</body>
</html>
 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

Search

  •  

最新评论及回复

最近发表

Powered By Z-Blog 1.8 Spirit Build 80722 Code detection by Codefense

Copyright 2008-2011 京公网安备 110115000655 京ICP备09005635号 www.qtasp.cn WebSite. All Rights Reserved.