Assigning events from within another event

Specifically... assigning an onmouseover event to an element in the onmouseout event of that element, so that when a page loads the onmouseover event will not immediately fire.
Date Created: 19th November 2006
Date Modified: 19th November 2006
Home > JavaScript > Assigning Events

Query raised in WebmasterWorld JavaScript Forum:
http://www.webmasterworld.com/javascript/3155054.htm

NB: The message area below is cleared every 5 secs.

[Message Area]

TEST... Position the mouse over the image below then hit [F5] to refresh the page. The onmouseout event should be assigned. When you move the mouse off the image the onmouseout event should fire and the onmouseover event should be assigned (removing the onmouseout event). Move back over the image to activate the onmouseover event.

Test Image that will later have rollover effects assigned
Top left corner of the rollover image

[Home]