The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> 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
Frederiek
post Dec 27 2008, 04:29 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 4,278
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.


--------------------
"The earth does not belong to us. We belong to the earth."
from Vue du ciel (in French)

"Leave scepticism to others and take action"
from HOME by Goodplanet

An inconvenient truth by Al Gore
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


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 15,195
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.


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
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,212
Joined: 31-August 06
Member No.: 43



Or you can simply do this:

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


--------------------
Brian Chandler
Nothing in this post constitutes "commercial solicitation". PayPal does not solicit residents of Japan. Contents may settle in transit. "Legal mind" may or may not be brain-damaged.
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: 23rd July 2014 - 12:51 PM