<script type = "text/javascript">
window.onload = function(){
var hint = "Текст подсказки";
document.getElementById( "test" ).onmouseover =
function(){
document.getElementById( "hint" ).innerHTML = hint;
}
document.getElementById( "test" ).onmouseout =
function(){
document.getElementById( "hint" ).innerHTML = "";
}
}
</script>
<div id = "test" style = "width: 200px; height: 20px; color: #00f; cursor: help" >Наведи на меня курсор</div>
<br/>
<span id = "hint"></span>