<html>
<head>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("div").mouseover(function(){
$(this).append('<span style="color:#F00;">mouseover.</span>');
}).mouseleave(function(){
$(this).append('<span style="color:#00F;">mouseleave</span>');
});
});
</script>
</head>
<body>
<body>
<div>adsf</div>
</body>
</html>
|