auto=null; timer=null; var focus=new function(); focus.prototype={ init:function(){ this.atime=this.atime || 10; this.stime=this.stime || 5000; this.oimg=document.getelementbyid('focus_m').getelementsbytagname("ul")[0]; this.oimgli=this.oimg.getelementsbytagname("li"); this.ol=document.getelementbyid('focus_l'); this.or=document.getelementbyid('focus_r'); this.createtextdom(); this.target=0; this.automove(); this.oaction(); }, createtextdom:function(){ var that=this; this.otext=document.createelement("div"); this.otext.classname="focus_s"; var ul=document.createelement('ul'); var frag=document.createdocumentfragment(); for (var i=0;i100) { clearinterval(that.timer); }else { for (var i=0;i