View Full Version : Change Image/Mapping Question...

06-02-2005, 10:16 PM
I am having a problem with a script I have and incorporating a mapped image into. The script allows me to set a picture on screen and change that picture to something else when a link is clicked. I have multiple links and multiple images maps but I don't know how to get it to work with the script. I know you all are talented so I figured I would ask for help here. The code is below and I have also shown one of the image maps. Thanks in advance.

if (document.images) {
color1on = new Image();
color1on.src = "images/News_Booking.jpg";
color2on = new Image();
color2on.src = "images/News_Dates.jpg";

function changeImages() {
if (document.images) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src =
eval(changeImages.arguments[i+1] + ".src");
// -->

<map id="News_Booking" name="News_Booking">
<area shape="rect" coords="398,255,528,277" href="mailto:aaaentertainment@aol.com" title="" />
<area shape="default" nohref="nohref" alt="" />