<div id=demo style=overflow:hidden;height:100;width:90;
background:#214984;color:#ffffff>
<div id=demo1>
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
<img src="http://www.baidu.com/img/logo.gif">
</div>
<div id=demo2></div>
</div>
   <script>
   var speed=30
   demo2.innerHTML=demo1.innerHTML //克隆demo1为demo2
   function Marquee(){
//当滚动至demo1与demo2交界时
if(demo2.offsetTop-demo.scrollTop<=0)   
demo.scrollTop-=demo1.offsetHeight //demo跳到最顶端
else{
demo.scrollTop++
   }
   }
   var MyMar=setInterval(Marquee,speed)//设置定时器
//鼠标移上时清除定时器达到滚动停止的目的
   demo.onmouseover=function() {clearInterval(MyMar)}
//鼠标移开时重设定时器
   demo.onmouseout=function(){MyMar=setInterval(Marquee,speed)}
</script>

==============

 

<div id="demo" style="overflow:hidden;width:670px;color:#ffffff;">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr><td id="demo1" valign="top" align="center">
          <table cellpadding="2" cellspacing="0" border="0">
            <tr align="center">
              <td><img src="http://www.baidu.com/img/logo.gif" ></td>
              <td><img src="http://www.baidu.com/img/logo.gif" ></td>
              <td><img src="http://www.baidu.com/img/logo.gif" ></td>
              <td><img src="http://www.baidu.com/img/logo.gif" ></td>
              <td><img src="http://www.baidu.com/img/logo.gif" ></td>
            </tr>
          </table>
        </td>
        <td id="demo2" valign="top"></td>
        </tr>
      </table>
    </div>
  <script>
  var speed=1//速度数值越大速度越慢
  demo2.innerHTML=demo1.innerHTML
  function Marquee(){
  if(demo.scrollLeft<=0)
  demo.scrollLeft+=demo2.offsetWidth
  else{
  demo.scrollLeft–
  }
  }
  var MyMar=setInterval(Marquee,speed)
  demo.onmouseover=function() {clearInterval(MyMar)}
  demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
  </script>

<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN">  
  <html>  
  <head>  
  <title>   ScrollUP   </title>  
  <meta   name="author"   content="DSclub   –   干部">  
  <style>  
  #showm  
  {  
  width:   240px;  
  height:   200px;  
  border:   1px   solid   #000;  
  overflow:hidden;  
  text-align:center;  
  }  
h1   img  
  {  
  border:   1px   solid   #348;  
  }   
  </style>  
  </head>  
  <body>  
  <div   id="showm">  
    <div   id="marquees">  
    <h1><img   src="http://community.csdn.net/images/CSDN_logo.GIF"   /></h1>  
    <h1><img   src="http://community.csdn.net/images/CSDN_logo.GIF"   /></h1>  
    <h1><img   src="http://community.csdn.net/images/CSDN_logo.GIF"   /></h1>  
    <h1><img   src="http://community.csdn.net/images/CSDN_logo.GIF"   /></h1>  
    <h1><img   src="http://community.csdn.net/images/CSDN_logo.GIF"   /></h1>  
    </div>  
  </div>  
  </body>  
  </html>  
  <html>  
  <head>  
  <title>   new   document   </title>  
  <meta   name=generator   content=editplus>  
  <meta   name=author   content=>  
  <meta   name=keywords   content=>  
  <meta   name=description   content=>  
  </head>  
   
  <body>  
  <script   language=javascript>  
  var   speed=30;  
   
  function   scrollUp(){    
  if(showm.scrollTop   +   showm.offsetHeight>=marquees.scrollHeight){    
  showm.scrollTop=0;  
  }else{    
  showm.scrollTop++;  
  }    
  }    
   
  var   mymar=setInterval(scrollUp,speed);    
  showm.onmouseover=function()   {clearInterval(mymar)}    
  showm.onmouseout=function()   {mymar=setInterval(scrollUp,speed)}    
   
  </script>  
  </body>  
  </html>  

ASP中要改成UTF-8编码不只改一下页面的字符设置,如果是动态页面,要从数据库中读取汉字。还要在编码声明里设置为UTF-8,拿ASP来说。
  <%’—————常规设置————–
    Option Explicit
    Response.Buffer = True           ‘是否打开缓存
    Session.CodePage = 65001    ‘脚本UTF-8编码
  %>

  所以对于动态页面中使用UTF-8编码,既要在页面中声明页面的编码为UTF-8,还要在程序的全局设置中声明脚本的编码为UTF-8。

<!–焦点图开始–>
      <SCRIPT type=text/javascript>           var focus_width=492;            var focus_height=268;           var text_height=0;      var swf_height = focus_height+text_height;           var pics=’http://image.rayli.com.cn/3/3TWK/2007-06-19/images/200706191732554.jpg|http://image.rayli.com.cn/3/3TWK/2007-06-19/images/20070619205310200706191733315.jpg|http://image.rayli.com.cn/3/3TWK/2007-06-19/images/200706191734303.jpg|http://image.rayli.com.cn/3/3TWK/2007-06-19/images/200706191735091.jpg|http://image.rayli.com.cn/3/3TWK/2007-06-19/images/200706191740172.jpg’; var links=’http://msn.rayli.com.cn/3001/2007-05-28/L3001002_245335.html|http://msn.rayli.com.cn/3002/2007-06-12/L3002003_245362.html|http://msn.rayli.com.cn/3003/2007-06-13/L3003003_245328.html|http://msn.rayli.com.cn/3005/2007-06-19/L3005006_245343.html|http://msn.rayli.com.cn/3008/2007-06-08/L3008002_245100.html’;          var texts=” ;            document.write(‘<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ codebase=”http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0″ width=”‘+ focus_width +'” height=”‘+ swf_height +'”>’);           document.write(‘<param name=”allowScriptAccess” value=”sameDomain”><param name=”movie” value=”http://www.rayli.com.cn/images/pixviewer.swf”><param name=”quality” value=”high”><param name=”bgcolor” value=”#ffffff”>’);           document.write(‘<param name=”menu” value=”false”><param name=wmode value=”opaque”>’);          document.write(‘<param name=”FlashVars” value=”pics=’+pics+’&links=’+links+’&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’+text_height+'”>’);          document.write(‘<embed src=”http://www.rayli.com.cn/images/pixviewer.swf” wmode=”opaque” FlashVars=”pics=’+pics+’&links=’+links+’&texts=’+texts+’&borderwidth=’+focus_width+’&borderheight=’+focus_height+’&textheight=’+text_height+'” menu=”false” bgcolor=”#ffffff” quality=”high” width=”‘+ focus_width +'” height=”‘+ focus_height +'” allowScriptAccess=”sameDomain” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />’);           document.write(‘</object>’);  //–>         </SCRIPT><!–焦点图结束–>

<a  href=”javascript:void(0);” onClick=”window.external.AddFavorite(document.location.href,document.title)”>加入收藏</a>
<span onclick=”var strHref=window.location.href;this.style.behavior=’url(#default#homepage)’;this.setHomePage(‘http://www.jspok.com’);” style=”CURSOR: hand”>设为首页</span>