Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Graphics, Flash and Multimedia _ Linking one image to another.

Posted by: earthshaker Dec 27 2008, 02:41 AM

Here is what I want to do, I have two images, by clicking on one the other image will be linked and hopefully replace the first if I get them positioned right. I tried an image as a link but it didn't work like I thought it would, Probably a syntax error. Just to complicate things the second image is also a link to another page.

Posted by: Frederiek Dec 27 2008, 04:29 AM

See the FAQ at http://htmlhelp.com/faq/html/images.html#linked-image on how to link an image. The href can contain the path to another image, only then you can't create alink for that second image.

For the second image to be a link too, you'd better put the image (as a link) in an HTML page and link to that page from the first image.

Posted by: earthshaker Dec 27 2008, 09:17 AM

So I can't do everything I wanted to do with what I have, OK Thanks, I really need to stop staying up at all hours.

Posted by: pandy Dec 27 2008, 11:19 AM

Well, that will open the image in the full window. It won't replace the image in the page with another one. For that you need either JavaScript or CSS trickery.

Posted by: Brian Chandler Dec 27 2008, 11:33 AM

Or you can simply do this:

http://imaginatorium.org/sano/lion.htm

Posted by: earthshaker Dec 27 2008, 12:06 PM

Already looking into js/css trickery. I found some scripts that might work, but I haven't tried yet.
Thanks for the replies smile.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)