Javascript and Image Links

wxdqz

New Member
I've been working on a website and was wondering if it is possible to click a link and have an image appear in the place of another image, then have this image become a link. I know the first part is simple, but the image that I have flipping is going to be used for multiple links, thus I want to use an image map. Is it possible to specify in Javascript that once this image is swapped that an image map will be added to the image command:
------------------
ie:
<img name="blah" src=http://www.webdeveloper.com/forum/archive/index.php/"blah.jpg" width="43" height="43" alt="" border="0">
becomes:
<img name="blah" src="blah.jpg" width="43" height="43" alt="" usemap="#blah" border="0">
------------------

I would Greatly appreciate the help.
 
Back
Top