jQuery接口: .hover(over,out); 具体方法: $("#id").hover( function(){ //当鼠标放上去的时候,程序处理 }, function(){ //当鼠标离开的时候,程序处理 });