conform with web standards. --> <img id="myImage" src="/images/myImage.jpg" onMouseOver="alert('your message');"> // JavaScript code without any framework <ref>var myImg = document.getElementById('myImage');</ref> function myMessage() { alert('your message'); } if (myImg.addEventListener) { //addEventListener is the standard method to add events to objects. myImg.addEventListener('mouseover', myMessage, false); } else if (myImg.attachEvent) { //For Internet Explorer myImg.attachEvent('onmouseover', myMessage); } else { //For other browsers myImg.onmouseover = myMessage; } // jQuery example. It degrades well if JavaScript is disabled in the client browser. $("img").mouseover(function(){ alert('your message'); }); References External links Hidden CSS Menu A multilevel mouseover-menu in pure CSS (i.e. no JavaScript) DontClick.it Demonstration of navigation using only mouseover (requires Flash Player) Graphical control elements