仅供参考
<script language="JavaScript">
<!-- Hide
var scrtxt="<a href=index.asp>您也可以试试.</a>"
var lentxt=scrtxt.length;
var width=50;
var pos=1-width;
function scroll() {
  pos++;
  var scroller="";
  if (pos==lentxt) {
    pos=1-width;
  }
  if (pos<0) {
    for (var i=1; i<=Math.abs(pos); i++) {
      scroller=scroller+"&nbsp;"}
    scroller=scroller+scrtxt.substring(0,width-i+1);
  }
  else {
    scroller=scroller+scrtxt.substring(pos,width+pos);
  }
  document.all("display").innerHTML=scroller;
  setTimeout("scroll()",150);
  }
</script>
<body onLoad="scroll();return true;">

解决方案 »

  1.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>连续向左滚动</title>
    <style type="text/css">
    <!--
    body {
    font-size: 9pt;
    color: #000000;
    }
    a {
        color: #0000FF;
    text-decoration: none;
    }
    a:hover {
    color: #FF0000;
    text-decoration: underline;
    }
    -->
    </style>
    </head><body><div id="marquees">
    <a href="#">链接一</a>
    <a href="#">链接二</a>
    <a href="#">链接三</a>
    <a href="#">链接四</a>
    </div><div id="templayer" style="position:absolute;left:0;top:0;visibility:hidden"></div>
    <script language="JavaScript">marqueesWidth=200;with(marquees){
    style.height=0;
    style.width=marqueesWidth;
    style.overflowX="hidden";
    style.overflowY="visible";
    noWrap=true;
    onmouseover=new Function("stopscroll=true");
    onmouseout=new Function("stopscroll=false");
    }
    preLeft=0; currentLeft=0; stopscroll=false;function init(){
    templayer.innerHTML="";
    while(templayer.offsetWidth<marqueesWidth){
    templayer.innerHTML+=marquees.innerHTML;
    }
    marquees.innerHTML+=templayer.innerHTML;
    setInterval("scrollLeft()",10);
    }init();function scrollLeft(){
    if(stopscroll==true) return;
    preLeft=marquees.scrollLeft;
    marquees.scrollLeft+=1;
    if(preLeft==marquees.scrollLeft){
      marquees.scrollLeft=templayer.offsetWidth-marqueesWidth+1;
    }
    }
    </script>
    </body>
    </html>