<script language="javascript" type="text/javascript">

<!--对联代码开始-->
   //<![CDATA[
   var adLeftSrc = "http://zgc.net.ru/yht/images/menu.swf"   //图片地址
   var adLeftFlash = "flash"
   var adLeftHref = "http://www.xybar.cn"
   var adLeftWidth = 85
   var adLeftHeight = 255
   var adRightSrc = "http://jspok.com/images/iceweb_02.gif"//图片地址
   var adRightFlash = ""
   var adRightHref = "http://ddr888.cnblogs.com/"
   var adRightWidth = 85
   var adRightHeight = 255
   var marginTop = 200 //在这里更改距离浏览器底端的高度
   var marginLeft = 15//在这里更改距离浏览器右端的高度
   var navUserAgent = navigator.userAgent
   function load(){
    judge();
    move();
   }
   function move() {
    judge();
    setTimeout("move();",80)
   }
   function judge(){
    if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0) {
     if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight - marginTop + 'px';}
     if (adRightSrc != "") {
      document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight - marginTop + 'px';
      document.getElementById("adRightFloat").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
     }
    }
    else{
     if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight - marginTop + 'px';}
     if (adRightSrc != "") {
      document.getElementById("adRightFloat").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight - marginTop + 'px';
      document.getElementById("adRightFloat").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth - marginLeft + 'px';
     }
    }
    if (adLeftSrc != "") {document.getElementById("adLeftFloat").style.left = marginLeft + 'px';}
   }
  
  
  
   if (adLeftSrc != "") {
    if (adLeftFlash == "flash") {
    document.write("<div id="adLeftFloat" style="position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;"><img src="images/close.gif" width="12" border="0" height="12" onMousedown="javascript:close_float_left();void(0);";>");
   
     document.write("<div id="Float" style="width:" + adLeftWidth + ";"><embed src="" + adLeftSrc + "" quality="high"  width="" + adLeftWidth + "" height="" + adLeftHeight + "" type="application/x-shockwave-flash"></embed></div>");
     document.write("</div>");
    }
    else{
    document.write("<div id="adLeftFloat" style="position: absolute;width:" + adLeftWidth + ";height:100px; font-size:12px;"><img src="images/close.gif" width="12" border="0" height="12" onMousedown="javascript:close_float_left();void(0);";>");
   
     document.write("<div id="Float" style="width:" + adLeftWidth + ";"><a href="" + adLeftHref +"" target=_blank><img src="" + adLeftSrc + ""  width="" + adLeftWidth + "" height="" + adLeftHeight + ""  border="0" ></a></div>");
     document.write("</div>");
    }
   }
  
  
  
   if (adRightSrc != "") {
    if (adRightFlash == "flash") {
    document.write("<div id="adRightFloat" style="position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;"><img src="images/close.gif" width="12" border="0" height="12" onMousedown="javascript:close_float_right();void(0);";>");
   
     document.write("<div id="Float" style="width:" + adRightWidth + ";"><embed src="" + adRightSrc + "" quality="high"  width="" + adLeftWidth + "" height="" + adRightHeight + "" type="application/x-shockwave-flash"></embed></div>");
     document.write("</div>");
    }
    else{
    document.write("<div id="adRightFloat" style="position: absolute;width:" + adRightWidth + ";height:100px; font-size:12px;text-align:right;"><img src="images/close.gif" width="12" border="0" height="12" onMousedown="javascript:close_float_right();void(0);";>");
   
     document.write("<div id="Float" style="width:" + adRightWidth + ";"><a href="" + adRightHref +"" target=_blank><img src="" + adRightSrc + ""   width="" + adLeftWidth + "" height="" + adRightHeight + ""  border="0"  ></a></div>");
     document.write("</div>");
    }
   }
  
  
     
&nb
sp;  load();

function close_float_right(){
document.getElementById("adRightFloat").style.display="none";}
function close_float_left(){
document.getElementById("adLeftFloat").style.display="none";}  //]]>

<!--对联代码结束-->
</script>

 

<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>

<form name=webluoye>
<select name="select" class="heiti" onchange="location.href=webluoye.select.options.value">
  <option value="page.asp第1页</option>
</select></form>

<!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>