function getclass(obj,box){ var adiv=obj.getelementsbytagname('*'); var arr=[]; for(var i=0;i0?math.ceil(ispeed):math.floor(ispeed); if(icur==itarget){ clearinterval(obj.timer); }else{ if(attribute=='opacity'){ obj.style.filter='alpha(opacity:'+(icur+ispeed)+')'; obj.style.opacity=(icur+ispeed)/100; }else{ obj.style[attribute]=icur+ispeed+'px'; } } },30); }