我希望当我将鼠标移动到标签上时,会弹出一个警告框(alert("something"))。我尝试了许多函数,但是只有当我单击标签时,警告框才会起作用,而不是当我将其移动到标签上时!
我尝试过:
$("#show").mouseover(function(){
alert("something");
});
$("#show").mouseenter(function(){
alert("something");
});
$("#show").live('vmouseover', function() {
alert("something");
});
$("#show").hover(
function () {
alert("something");
});