<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0039)http://www.foodone.com.cn/rolldown2.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY>
<TABLE height=130 cellSpacing=0 cellPadding=0 width=410 border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle height="96%">
<DIV id=demo
style="BACKGROUND: #214984; OVERFLOW: hidden; WIDTH: 400px; COLOR: #ffffff; HEIGHT: 122px">
<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD id=demo1 vAlign=top><IMG height=120 src="rolldown2.files/1.gif"
width=180 border=0><IMG height=120 src="rolldown2.files/2.gif"
width=170><IMG height=120 src="rolldown2.files/3.gif" width=170><IMG
height=120 src="rolldown2.files/4.gif" width=170><IMG height=120
src="rolldown2.files/5.gif" width=170> </TD>
<TD id=demo2
vAlign=top></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<SCRIPT>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</SCRIPT>
</BODY></HTML>
posted on 2006-04-03 15:51
汪杰 阅读(700)
评论(0) 编辑 收藏 引用 所属分类:
hengxing网站js