This is a discussion on "[SOLVED] multiple image rollover not restoring image" within the JavaScript Forum section. This forum, and the thread "[SOLVED] multiple image rollover not restoring image are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] multiple image rollover not restoring image
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
[SOLVED] multiple image rollover not restoring image
I have two pairs of images that are linked.
When user rollovers img1 it changes to img2, and on another part of the page (on an image map) img3 changes to img4. Likewise when the user rolls over img3, then img1 changes too. My problem is the imgRestore command only seems to work on one pair of images at a time. i.e. img1 restores but img 3 doesn't and vice versa Any tips on how to get both pairs of image to restore on mouseOut?
Last edited by Rakuli; Nov 5th, 2007 at 10:30. Reason: restored white space |
|
|
|
#2
|
||||
|
||||
|
Re: multiple image rollover not restoring image
Can you show the actual javascript functions please. I can't see what might be causing the error without seeing them
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: multiple image rollover not restoring image
Would any problem be here? I thought it would be in the html. Or do I misunderstand?
|
|
#4
|
||||
|
||||
|
Re: multiple image rollover not restoring image
Yeah, I needed to see what your code was doing so I could see how it was wrong in your HTML
I think your problem is that you are calling the function too often, you only need to call it once and add all the necessary images to it...
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#5
|
|||
|
|||
|
Re: multiple image rollover not restoring image
You are right, brilliant, thanks.
Just needed an comma between the two image swaps too. Cheers for your help! |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hover over text to rollover an image? | Dapandyman | Web Page Design | 3 | Feb 24th, 2008 08:12 |
| Rollover image links - eek...why aren't they working?? | supanova75 | Web Page Design | 7 | Nov 15th, 2007 12:47 |
| Rollover image with links on new image | stoob | JavaScript Forum | 2 | Feb 8th, 2007 22:05 |
| image rollover | renren | Web Page Design | 3 | Feb 13th, 2006 12:54 |
| Rollover Image Problem! | edejo | JavaScript Forum | 2 | Dec 16th, 2005 01:44 |