最新回答 / 未成年面饼
flag就像一个开关只有全部运行完才进行clearInterval()方法 理由是如果width由200→201时间太短 立即用了clearInterval()方法flag = 关闭;//false只有全部运行完才开启进行clearInterval()方法flag = 开启;//true
2015-08-06
var oDiv = document.getElementById('xx');
var aA = oDiv.getElementsByTagName('a');
for(i=0; i<aA.length; i++){
aA[i].onmouseover = function(){
var _this = this.getElementsByTagName('i')[0];
start1(_this,{top:-38, opacity:0},function(){
var aA = oDiv.getElementsByTagName('a');
for(i=0; i<aA.length; i++){
aA[i].onmouseover = function(){
var _this = this.getElementsByTagName('i')[0];
start1(_this,{top:-38, opacity:0},function(){
2015-08-05
_this.style.top = 40+'px';
start1(_this,{top:38, opacity:100})
})
}
}
start1(_this,{top:38, opacity:100})
})
}
}
2015-08-05