document.write(" "); function class_index_img_scroll() { var t; var p=false; var o; var speed = 200; var delay = 3000; var unit = 1; var self = this; this.gt=function(a){ if(document.getelementbyid) return eval('document.getelementbyid("'+a+'")'); else{ if(document.layers) return eval("document.layers['"+a+"']"); else return eval("document.all."+a) ; } } this.dotmarquee=function(id,sid){ o=self.gt(id); o.style.overflow="hidden"; this.unit=o.offsetwidth; os = self.gt(id+"_sub_"+sid); os.innerhtml+=os.innerhtml; o.onmouseover=function(){ p=true }; o.onmouseout=function(){ p=false }; //alert(o.scrollwidth); self.delay = 3000; self.speed = 20; self.unit = parseint(o.offsetwidth/2); //alert(self.unit); o.scrollleft = 0; settimeout(self.doscroll,self.delay); } this.doscroll=function(){ self.t = setinterval(self.scrolling, self.speed); if(!p){ o.scrollleft+=1; } } this.scrolling=function(){ if( o.scrollleft % self.unit!=0 ){ o.scrollleft+=1; if( o.scrollleft>=o.scrollwidth ){ //alert(o.scrollleft); o.scrollleft=0; } } else{ clearinterval(self.t); settimeout(self.doscroll,self.delay); } } this.init=function(sname,sid){ eval(" var dotmarquee"+sname+"_"+sid+" = new this.dotmarquee( '"+sname+"', '"+sid+"'); "); } } function addscrolls(sname,sid){ eval(" window.t_i_imgs_scroll"+sname+"_"+sid+" = new class_index_img_scroll(); window.t_i_imgs_scroll"+sname+"_"+sid+".init( '"+sname+"', '"+sid+"' ); "); } function index_img_scroll() { var t; var p = false; var o; var speed = 100; var delay = 1000; var unit = 1; var fself = this; this.gt=function(a){ if(document.getelementbyid) return eval('document.getelementbyid("'+a+'")'); else{ if(document.layers) return eval("document.layers['"+a+"']"); else return eval("document.all."+a) ; } } this.dotmarquee=function(id,sid){ o = fself.gt(id); o.style.overflow="hidden"; this.unit=o.offsetwidth; os = fself.gt( id+"_sub_"+sid ); //os.innerhtml+=os.innerhtml; o.onmouseover=function(){ //p=true }; o.onmouseout=function(){ //p=false }; fself.delay = 1000; fself.speed = 20; fself.unit = parseint(o.offsetwidth/3); //alert( fself.unit ); o.scrollleft = 0; settimeout(fself.doscroll,fself.delay); } this.doscroll=function(){ fself.t = setinterval(fself.scrolling, fself.speed); if(!p){ o.scrollleft+=2; } } this.scrolling=function(){ if( o.scrollleft % fself.unit!=0 ){ o.scrollleft+=2; if( o.scrollleft>=o.scrollwidth/2 ) o.scrollleft=0; } else{ clearinterval(fself.t); settimeout(fself.doscroll,fself.delay); } } this.init=function(sname,sid){ eval(" var fdotmarquee"+sname+"_"+sid+" = new this.dotmarquee( '"+sname+"', '"+sid+"'); "); } } function faddscrolls(sname,sid){ eval(" window.t_f_imgs_scroll"+sname+"_"+sid+" = new index_img_scroll(); window.t_f_imgs_scroll"+sname+"_"+sid+".init( '"+sname+"', '"+sid+"' ); "); }