This won't work because i'm using the function to change the zIndex
of the image, and I want it to stay changed rather than return to
its original state when the mouse is moved off.

Yes, and your problem is... ? If you change the z-index in the onMouseOver event, and do nothing in the onMouseOut event, the z-index maintains its value. It does not revert to a previous value simply because you have moved the mouse. It is a property of that element and will retain its value unless it is explicitly changed.


Cheers,
Scott

----- Original Message ----- From: "Steven Olson" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 03, 2005 5:45 PM
Subject: RE: [wdvltalk] javascript help request



However, I'm not sure images actually HAVE onmouseover events...

You're right, of course, Howard. The code is really more like

a img href="#nogo" onmouseover="myfunction()"

If you want to use the index, you'd have to pass the index value

That was my fear. Thanks for confirming. I had wanted to determine the index from inside the function so that the function could be more global, and easier to use.

or use CSS rollovers instead.

This won't work because i'm using the function to change the zIndex of the image, and I want it to stay changed rather than return to its original state when the mouse is moved off.

Thanks for your help, Howard.

kind regards,
Steven Olson
P.O. Box 213
Sandpoint, ID 83864

[EMAIL PROTECTED]
208.304.9064


____ . The WDVL Discussion List from WDVL.COM . ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk


________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.




____ � The WDVL Discussion List from WDVL.COM � ____ To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or use the web interface http://e-newsletters.internet.com/discussionlists.html/ Send Your Posts To: [email protected] To change subscription settings, add a password or view the web interface: http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to