Forum Moderators: open

Message Too Old, No Replies

image swap function

         

Headed North

3:10 pm on Mar 29, 2006 (gmt 0)

10+ Year Member



I have a page that uses a JS image swap function to allow a user to click a number graphic and switch to that image without reloading the page. I'm trying to modify the function to include a different image map for each image and have had no luck. Here's what I have for the image swap. Can anyone tell me how to add the image map as part of the swap?

Thanks!

JS function:

function swapImage (sourceName,mapName)
{
document.largeImage.src="/images/commissions/houses/"+sourceName;
}

My call to the swap function:

<a href="#" onMouseover="img_act('p1')" onMouseout="img_inact('p1')" onClick="swapImage ('mayflower1.jpg','#Mayflower263'); return false">

The actual image display:

<img src="/images/commissions/houses/mayflower1.jpg" name="largeImage" width="712" height="470" border="0" id="largeImage">

Headed North

4:56 pm on Mar 29, 2006 (gmt 0)

10+ Year Member



Never mind. I found an alternate solution.