Board logo

标题: 滚动条自动左右移动 [打印本页]

作者: fangzhen    时间: 2008-11-14 13:29     标题: 滚动条自动左右移动

<HTML>
<HEAD>
<TITLE>无标题文档</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<script language=JavaScript>
var n=0;
var docwidth=1250;
var step=1;
function scrolling(){
window.scroll(n+=step,0);
if(n>docwidth||n<0){
step=0-step;
}
settimmerforscrolling()
}
function settimmerforscrolling(){
window.setTimeout("scrolling()",10);
}
</SCRIPT>
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE type=text/css>BODY {
MARGIN: 0px
}
.ing {
border: 1px solid #999999;
}
</STYLE>
</HEAD>
<BODY onload=settimmerforscrolling()>
<TABLE width="2300"
border=0 align=center cellPadding=0 cellSpacing=0 bgColor=#ffffff>
<TBODY>
<TR>
<TD align=middle><img src="images/cp1.jpg" height="135" class="ing"></TD>
<TD align=center><img src="images/cp2.jpg" width="170" height="135" class="ing"></TD>
<TD align=center><img src="images/cp3.jpg" width="203" height="135" class="ing"></TD>
<TD align=center><img src="images/cp4.jpg" width="170" height="135" class="ing"></TD>
<TD align=center><img src="images/cp5.jpg" width="182" height="135" class="ing"></TD>
<TD align=center><img src="images/cp6.jpg" width="170" height="135" class="ing"></TD>
<TD align=center><img src="images/cp1.jpg" height="135" class="ing"></TD>
<TD align=center><img src="images/cp2.jpg" width="170" height="135" class="ing"></TD>
<TD align=center><img src="images/cp3.jpg" width="203" height="135" class="ing"></TD>
<TD align=center><img src="images/cp4.jpg" width="170" height="135" class="ing"></TD>
<TD align=center><img src="images/cp5.jpg" width="182" height="135" class="ing"></TD>
<TD align=center><img src="images/cp6.jpg" width="170" height="135" class="ing"></TD>
</TR>
<TBODY>
</TBODY>
</TABLE>
</BODY>
</HTML>




欢迎光临 PHP开发笔记 (http://phpvi.com/) Powered by Discuz! 6.1.0