Layer.onMouseOver

JavaScript 1.2+ Nav4+ Syntax

onMouseOver="command"

Description

The onMouseOver event handler of the Layer object handles the events when the mouse cursor is moved over the layer area.

Example

Listing 7.344 shows an example of the onMouseOver event handler.

Listing 7.344 Example of the onMouseOver Event Handler
<html>
<head>
<title> Using the onMouseOver event handler of the Layer object</title>
</head>
<body>

<script language="JavaScript">
<!-- Hide

// function displays a message everytime the mouse is moved over Layer 2
function showMsg1(){
    document.form1.text1.value = "Mouse Moved over Layer 2 area.";
}
// End Hide --->
</script>
							 <layer id="layer1" width=200 height=200 color= bgcolor="yellow" TOP=170 LEFT=200 ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.