function   $(id)   { 
return   document.getElementById(id); 
} 

function   scrollBanner(timer,   moveNumber)   { 

function   move(o)   { 
var   st   =   document.documentElement.scrollTop   +   o.t; 
var   sl   =   document.documentElement.scrollLeft   +   (o.c   ==   0   ?   o.a   :   document.documentElement.clientWidth   -   o.a   -   o.offsetWidth); 
var   tc   =   st   -   o.offsetTop,   lc   =   sl   -   o.offsetLeft; 
with   (o.style)   { 
top   =   o.offsetTop   +   (tc   !=   0   ?   tc   /   Math.abs(tc)   :   0)   *   Math.min(Math.abs(tc),   moveNumber)   +   "px"; 
left   =   o.offsetLeft   +   (lc   !=   0   ?   lc   /   Math.abs(lc)   :   0)   *   Math.min(Math.abs(lc),   moveNumber)   +   "px"; 
} 
if   (o.person)   { 
with   (o.person.style)   { 
top   =   o.offsetTop   +   "px"; 
left   =   o.offsetLeft   +   o.offsetWidth   -   o.person.offsetWidth   +   "px"; 
} 
} 
} 

var   hidden   =   function()   { 
var   o   =   this.parent; 
window.clearInterval(o.interval); 
o.parentNode.removeChild(o); 
this.parentNode.removeChild(this); 
} 

this.add   =   function   (to,   t,   a,   c,   lo)   { 
/* 
to为object对象 
t为距离顶端距离 
当c   =   0的时候，a为距离左边的距离 
当c   !=   0的时候，a为距离右边的距离 
lo为关闭按钮 
*/ 
var   div,   exec   =   function   ()   { 
move(to); 
}; 

to.person   =   lo; 
to.t   =   t; 
to.a   =   a; 
to.c   =   c; 
with   (to.style)   { 
position   =   "absolute"; 
display   =   "block"; 
top   =   document.documentElement.scrollTop   +   t; 
left   =   document.documentElement.scrollLeft   +   (c   ==   0   ?   a   :   document.documentElement.clientWidth   -   a   -   to.offsetWidth); 
} 

if   ("undefined"   !=   typeof   lo)   { 
with   (lo.style)   { 
position   =   "absolute"; 
display   =   "block"; 
} 
lo.onmousedown   =   hidden; 
lo.parent   =   to; 
} 
exec(); 
to.interval   =   window.setInterval(exec,   timer); 
}; 
} 

window.onload   =   function   ()   { 
var   b   =   new   scrollBanner(10,15); 
b.add($("lwc"),   80,   10,   0,   $("lwc_c")); 

b.add($("rwc"),   80,   10,   1,   $("rwc_c")); 

b   =   null; 




}







  <!--
  function $(d){return document.getElementById(d);}
  function gs(d){var t=$(d);if (t){return t.style;}else{return null;}}
  function gs2(d,a){
    if (d.currentStyle){ 
      var curVal=d.currentStyle[a]
    }else{ 
      var curVal=document.defaultView.getComputedStyle(d, null)[a]
    } 
    return curVal;
  }
  function ChatHidden(){gs("ChatBody").display = "none";}
  function ChatShow(){gs("ChatBody").display = "";}
  function ChatClose(){gs("main").display = "none";}
  function ChatSend(obj){
    var o = obj.ChatValue;
    if (o.value.length>0){
      $("ChatContent").innerHTML += "<strong>Akon说：</strong>"+o.value+"<br/>";
      o.value='';
    }
  }

  if  (document.getElementById){
    (
      function(){
        if (window.opera){ document.write("<input type='hidden' id='Q' value=' '>"); }
      
        var n = 500;
        var dragok = false;
        var y,x,d,dy,dx;
        
        function move(e)
        {
          if (!e) e = window.event;
          if (dragok){
            d.style.left = dx + e.clientX - x + "px";
            d.style.top  = dy + e.clientY - y + "px";
            return false;
          }
        }
        
        function down(e){
          if (!e) e = window.event;
          var temp = (typeof e.target != "undefined")?e.target:e.srcElement;
          if (temp.tagName != "HTML"|"BODY" && temp.className != "dragclass"){
            temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
          }
          if('TR'==temp.tagName){
            temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
            temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
            temp = (typeof temp.parentNode != "undefined")?temp.parentNode:temp.parentElement;
          }
        
          if (temp.className == "dragclass"){
            if (window.opera){ document.getElementById("Q").focus(); }
            dragok = true;
            temp.style.zIndex = n++;
            d = temp;
            dx = parseInt(gs2(temp,"left"))|0;
            dy = parseInt(gs2(temp,"top"))|0;
            x = e.clientX;
            y = e.clientY;
            document.onmousemove = move;
            return false;
          }
        }
        
        function up(){
          dragok = false;
          document.onmousemove = null;
        }
        
        document.onmousedown = down;
        document.onmouseup = up;
      
      }
    )();
  }
  -->
