
Nov 5th, 2007, 10:03
|
|
Up'n'Coming Member
|
|
Join Date: Mar 2006
Location: UK
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
[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?
- Code: Select all
<td>
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('img1','','../../_globalimages/enOnly/lin/img2.gif',1);MM_swapImage('img3','','../../_globalimages/enOnly/lin/img4.gif',1)">
<img src="../../_globalimages/enOnly/lin/sd.gif" alt="go to South Denbighshire district" name="southDenbighshire_text" width="120" height="15" border="0" id="southDenbighshire_text" /></a>
</td>
and the image map..
- Code: Select all
<area shape="poly" coords="182,49,181,62,168,76,183,89,180,129,189,130,201,113,229,110,223,102,227,84,218,66,205,68,200,55" href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('img1','','../../_globalimages/enOnly/lin/img2.gif',1);MM_swapImage('img3','','../../_globalimages/enOnly/lin/img4.gif',1)" alt="go to South Denbighshire district" title="South Denbighshire district" />
Last edited by Rakuli; Nov 5th, 2007 at 10:30.
Reason: restored white space
|