Linking one image to another., possible? |
Linking one image to another., possible? |
earthshaker |
Dec 27 2008, 02:41 AM
Post
#1
|
Novice Group: Members Posts: 28 Joined: 23-November 08 Member No.: 7,176 |
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.
This post has been edited by earthshaker: Dec 27 2008, 03:06 AM |
Frederiek |
Dec 27 2008, 04:29 AM
Post
#2
|
Programming Fanatic Group: Members Posts: 5,146 Joined: 23-August 06 From: Europe Member No.: 9 |
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. |
earthshaker |
Dec 27 2008, 09:17 AM
Post
#3
|
Novice Group: Members Posts: 28 Joined: 23-November 08 Member No.: 7,176 |
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.
|
pandy |
Dec 27 2008, 11:19 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
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.
|
Brian Chandler |
Dec 27 2008, 11:33 AM
Post
#5
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
|
earthshaker |
Dec 27 2008, 12:06 PM
Post
#6
|
Novice Group: Members Posts: 28 Joined: 23-November 08 Member No.: 7,176 |
Already looking into js/css trickery. I found some scripts that might work, but I haven't tried yet.
Thanks for the replies |
Lo-Fi Version | Time is now: 23rd April 2024 - 09:21 AM |