PDA

View Full Version : Double Onmouseover?


igor.k
06-26-2001, 06:47 PM
Hello, everyone.

I may be digressing but I was wondering if perhaps you may be able to
answer my simple query. Is it possible to include more than one "onmouseover" function on a particular link or image? I've tried to include more than one "onmouseover" but consequently, the latter doesn't work or the whole
script doesn't function.

Dr. Web
06-26-2001, 08:05 PM
<html>
<head>
<title>Untitled</title>
</head>

<body><img src="" onmouseover="window.status='hello';alert('hello');"


</body>
</html>

igor.k
06-26-2001, 09:16 PM
No, that is just one, simple 'onmouseover.' I'm inquiring whether or not one can implement 2 onmouseover functions to the same particular image/link...

Mark
06-26-2001, 09:22 PM
yes you can! DrWeb did:


<img src="" onmouseover="window.status='hello';alert('hello');">


1: window.status='hello'
2: alert('hello')

he put it in 1 mousover statement

igor.k
06-26-2001, 09:43 PM
Pardon me! I must've not seen that! Thank you very much. So all I have to do is add a semicolon! I didn't know it was such a cinch!