<script>
var aA=document.getElementsByTagName("a")
for(var i=0;i<aA.length;i++){
aA[i].onmousemove=function(){
this.style.width=140+"px"
this.style.transition="all,1s"}
aA[i].onmouseout=function(){
this.style.width=100+"px"
this.style.transition="all,1s"}
}
</script>
var aA=document.getElementsByTagName("a")
for(var i=0;i<aA.length;i++){
aA[i].onmousemove=function(){
this.style.width=140+"px"
this.style.transition="all,1s"}
aA[i].onmouseout=function(){
this.style.width=100+"px"
this.style.transition="all,1s"}
}
</script>
2018-01-06
aLi[i].onmouseover=function(){
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px";
}, 20);
}
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px";
}, 20);
}
aLi[i].onmouseover=function(){
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px"; }, 20);
}
var that = this.getElementsByClassName("subNav")[0];
var addHeight = 0;
var addEvt = setInterval(function(){
addHeight += 30;
if(addHeight > 120){ clearInterval(addEvt); };
that.style.height = addHeight + "px"; }, 20);
}