<div id=d1 class='msg'>Move Mouse over this box</div>
<div id='t1' style="position:absolute;"></div>
jquery
<script>
$(document).ready(function() {
$('#d1').mousemove(function(){
$("#t1").html('You have moved the mouse inside box');
});
$('#d1').mouseout(function(){
$("#t1").html('You have moved Out ');
});
})
</script>