nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Fifty Studio│无间断滚动的新闻文章列表 CSS 布局演示 CSS Layout by Forestgan
2006-11-1 发表
<script> <BR> //图片无间断滚动代码,兼容IE、Firefox、Opera <BR> //原脚本是IE only,来自网上,作者未知 <BR> //部分内容是由forestgan为了JS代码标准化,兼容以gecko为内核的浏览器于2006-10-30重写 <BR> //http://www.forest53.com <BR> var speed=40; <BR> var FGDemo=document.getElementById('demo'); <BR> var FGDemo1=document.getElementById('demo1'); <BR> var FGDemo2=document.getElementById('demo2'); <BR> FGDemo2.innerHTML=FGDemo1.innerHTML <BR> function Marquee1(){ <BR> if(FGDemo2.offsetHeight-FGDemo.scrollTop<=0) <BR> FGDemo.scrollTop-=FGDemo1.offsetHeight <BR> else{ <BR> FGDemo.scrollTop++ <BR> } <BR> } <BR> var MyMar1=setInterval(Marquee1,speed) <BR> FGDemo.onmouseover=function() {clearInterval(MyMar1)} <BR> FGDemo.onmouseout=function() {MyMar1=setInterval(Marquee1,speed)} <BR></script>
<script></script>