function getbyclass(aparent,sclass) { var aele=aparent.getelementsbytagname('*'); var aresult=[]; for(var i=0;i0?math.ceil(speed):math.floor(speed); if(cur==itarget) { clearinterval(obj.timer); if(fnend)fnend(); } else { if(attr=='opacity') { obj.style.filter='alpha(opacity:'+(cur+speed)+')'; obj.style.opacity=(cur+speed)/100; } else { obj.style[attr]=cur+speed+'px'; } } },30) }