下一站天后

今朝的容颜老于昨晚

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
<body>
<div id=demo3 style=overflow:hidden;height:100;width:900;background:#ffffff;color:#ffffff> 
        
<table align=left cellpadding=0 cellspace=0 border=0 width="700" height="100">
          
<tr> 
            
<td id=demo4 valign=top>             <img src="images/p1.gif" width="140" height="97" border="0"><img src="images/p2.gif" width="140" height="97" border="0"><img src="images/p3.gif" width="140" height="97" border="0"><img src="images/p4.gif" width="140" height="97" border="0"><img src="images/p1.gif" width="140" height="97" border="0"><img src="images/p2.gif" width="140" height="97" border="0"><img src="images/p3.gif" width="140" height="97" border="0"><img src="images/p4.gif" width="140" height="97" border="0"><img src="images/p1.gif" width="140" height="97" border="0"><img src="images/p2.gif" width="140" height="97" border="0"><img src="images/p3.gif" width="140" height="97" border="0"><img src="images/p4.gif" width="140" height="97" border="0"></td>
            
<td id=demo5 valign=top></td>
          
</tr>
        
</table>
      
</div>
      
<script>
  
var speed2=5
  demo5.innerHTML
=demo4.innerHTML
  
function Marquee2(){
  
if(demo5.offsetWidth-demo3.scrollLeft<=0)
  demo3.scrollLeft
-=demo4.offsetWidth
  
else{
  demo3.scrollLeft
++
  }

  }

  
var MyMar2=setInterval(Marquee2,speed2)
  demo3.onmouseover
=function() {clearInterval(MyMar2)}
  demo3.onmouseout
=function() {MyMar2=setInterval(Marquee2,speed2)}
  
</script>
</body>
posted on 2009-02-19 15:22  孙雅玲  阅读(171)  评论(0编辑  收藏  举报