if (atr=="opacity") {
obj.style[atr]=(cur+speed)/100;
console.log(obj.style.filter);
console.log(obj.style[filter]);
obj.style.filter='alpha(opacity:'+cur+speed+')';
//obj.style[filter]='alpha(opacity:'+cur+speed+')';
}else{
obj.style[atr]=cur+speed+"px";
}
obj.style[filter]改为obj.style['filter'],obj.style.filter === obj.style['filter']