Re: Problem with image flipping
by Noone Special <pfarabee(at)indy.net>
|
| Date: |
Mon, 3 Aug 1998 09:16:29 -0500 (EST) |
| To: |
hwg-graphics(at)hwg.org |
| In-Reply-To: |
aol |
| |
todo: View
Thread,
Original
|
|
On Sat, 1 Aug 1998 HubJunky1(at)aol.com wrote:
> Hello,
>
> I'm having troubles with an image flip using onmouseover at the url:
> http://members.xoom.com/LooneyArt/menujava.html
AAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRGGGGH!! EEEEEEEEEEEEEEEEK!
I don't even know where to begin...
1. onmouseover = "SwapOut()"
but the function SwapOut is changing the image to be "blahoff.gif"
and the onmouseout function "Swapback()" is changing the image to be
"blahon.gif"... IE the image names are backwards, so the effect is
backwards.
2. EEEEEEEEEEEEEEEEEEEK!
3. Uhm.. each time you define a function, it will write over any previous
definition of that function... same goes for variable names.. you
are defining the functions SwapOut and SwapBack 11 times, as well as
assigning images to the variables Image1 and Image2 11 times. The only
one of these definitions that will survive is the last one, which
happens to be the one that is "working"
Pat
HWG: hwg-graphics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.