Click to See Complete Forum and Search --> : Checking for MouseOver
brendandonhue
05-15-2003, 06:53 PM
is there a way, from within a function, to check if the mouseover is on an image?
Something like
if (document.images[0].mouseover == true
{blah blah blah}.
Is there a way?
Thx in advance.
Charles
05-15-2003, 07:17 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<body onload="setTimeout('alert(window.overImage)', 3000)">
<img src="http://www.bettiepage.com/images/photos/leggy/leggy17.jpg" alt="Bettie" onmouseover="window.overImage = true" onmouseout="window.overImage = false">
brendandonhue
05-15-2003, 07:19 PM
Ahh thanks, I think I can make that work for me.