<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<table width="400" align="center">
  <tr>
    <th scope="col"><div id=demo style=overflow:hidden;height:60;width:240;background:#214984;color:#ffffff> 
<table border=0 align=left cellpadding=0 cellspacing="0" cellspace=0> 
<tr> 
<td align="left" valign=top id=demo1><a href="http://www.csdn.net/"><img src="http://www.csdn.net/Images/logo_csdn.gif" width="120" height="60" border="0"></a><a href="http://www.csdn.net/"><img src="http://www.csdn.net/Images/logo_csdn.gif" width="120" height="60" border="0"></a></td> 
<td id=demo2 valign=top></td> 
</tr> 
</table> 
</div> 
<script> 
var speed=1 //改变此数值可改变滚动速度
demo2.innerHTML=demo1.innerHTML 
function Marquee(){ 
if(demo2.offsetWidth-demo.scrollLeft<=0) 
demo.scrollLeft-=demo1.offsetWidth 
else{ 
demo.scrollLeft++ //若是把这行代码改成demo.scrollLeft+=10,则更便于改变速度


var MyMar=setInterval(Marquee,speed) 
demo.onmouseover=function() {clearInterval(MyMar)} 
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 
</script></th>
  </tr>
</table> </body></html>
 

解决方案 »

  1.   

    http://www.baidu.com/baidu?word=%B2%BB%BC%E4%B6%CF%B9%F6%B6%AF%CD%BC%C6%AC&tn=myie2dg
      

  2.   

    <td id="scroll_begin">
    <td id="scroll_end"></td>
    "><img src="http://www.csdn.net/Images/logo_csdn.gif" width="120" height="60" border="0"></a><a href="http://www.csdn.net/"><img src="http://www.csdn.net/Images/logo_csdn.gif" width="120" height="60" border="0"></a><SCRIPT>
    var speed=60
    var sc_end = document.getElementById("scroll_end");
    var sc_begin = document.getElementById("scroll_begin");
    var sc_div = document.getElementById("scroll_div");
    sc_end.innerHTML=sc_begin.innerHTML
    function Marquee(){
    if(sc_end.offsetWidth-sc_div.scrollLeft<=0)
    sc_div.scrollLeft-=sc_begin.offsetWidth;
    else{
    sc_div.scrollLeft++;
    }
    }
    var MyMar=setInterval(Marquee,speed)
    sc_div.onmouseover=function() {clearInterval(MyMar)}
    sc_div.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
    </SCRIPT>