25 lines
538 B
HTML
25 lines
538 B
HTML
<html>
|
|
<head><title>MouseOvers</title></head>
|
|
<script language="JavaScript">
|
|
<!--
|
|
var myImg = document.getElementById('myImage');
|
|
|
|
function myMessage() {
|
|
alert('Welcome to mouseover-enabled Orca!');
|
|
}
|
|
|
|
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="Orca Logo" onMouseOver="myMessage();"></p>
|
|
</body>
|
|
</html>
|
|
|