<html> |
<head> |
<title></title> |
<script> |
#(function(){ |
var element=$("#warning"); |
if(element.length<=0){ |
alert("没有找到拽定的按妞!") |
} |
element.mouseover(function(){ |
alert("移上来了!"); |
}); |
}) |
</script> |
</head> |
<body> |
<p id="warning">请勿触碰!</p> |
</body> |
</html> |