$('a').hover(function(){
//一张图
},function(){
//换另一张图
})
可以写一个onmouseover的事件函数,在函数中改变style就可以了。如:document.getElementById("test").onmouseover=function(){
this.style.color="red"
}
当然,你还可以再写一个onmouseout事件函数
$('a').hover(function(){
//一张图
},function(){
//换另一张图
})
可以写一个onmouseover的事件函数,在函数中改变style就可以了。如:document.getElementById("test").onmouseover=function(){
this.style.color="red"
}
当然,你还可以再写一个onmouseout事件函数