cthulhu/test/html/mouseover.html

25 lines
544 B
HTML
Raw Permalink Normal View History

<html>
<head><title>MouseOvers</title></head>
<script language="JavaScript">
<!--
var myImg = document.getElementById('myImage');
function myMessage() {
alert('Welcome to mouseover-enabled Cthulhu!');
}
if(myImg.addEventListener) {
myImg.addEventListener('mouseover', myMessage, false);
}
else {
myImg.onmouseover = myMessage;
}
//-->
</script>
<body>
<p>Mouseover which will present an traditional alert:</p>
<p><img id="myImage" src="cthulhu-for-tests.jpg" alt="Cthulhu Logo" onMouseOver="myMessage();"></p>
</body>
</html>