prova così:
codice:
<script type="text/javascript">
function comment(v, e){
var comments = new Array('google', 'html.it', 'tizio e caio');
document.getElementById('commento').innerHTML = comments[v];
document.getElementById('commento').style.marginLeft = e.pageX;
document.getElementById('commento').style.marginTop = e.pageY;
document.getElementById('commento').style.display = 'block';
}
function hide(){
document.getElementById('commento').style.display = 'none';
}
</script>
Google
Html
Tizio&Caio
<div id="commento" style="dysplay:none"></div>
ovviamente nei commenti puoi anke inserire il tag img e qualunque altra cosa (l'importante è ke stai attento agl'apici)...