The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Linking one image to another., possible?
earthshaker
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies(1 - 5)
Frederiek
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
earthshaker
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Dec 27 2008, 11:33 AM
Post #5


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



Or you can simply do this:

http://imaginatorium.org/sano/lion.htm
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
earthshaker
post 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 smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 09:21 PM