PDA

View Full Version : 2 hyperlinks for 2 frames in 1 image


v0id
04-18-2005, 08:21 PM
well basically, im trying to link 2 pages to 2 different frames in 1 image, heres the code i use:


<a href="page1.html" target="content1"><a href="page2.html" target="content2"><img src="image.png"></a></a>


it doesnt work, i tried:


<a href="page1.html" target="content1" href="page2.html" target="content2"><img src="image.png"</a>

dniwebdesign
04-18-2005, 08:23 PM
I don't think you can... the only possibly way to have 1 image have 2 links is using an Image Map however you cannot have the same link in the same spot. You might be able to use JavaScript though.

v0id
04-18-2005, 08:25 PM
well im trying to put 1 frame where i show the actual content, and another frame which shows a navigation page for the actual content.. whats the best way to do this?

dniwebdesign
04-18-2005, 08:29 PM
well im trying to put 1 frame where i show the actual content, and another frame which shows a navigation page for the actual content.. whats the best way to do this?
So you just want a frame with your content, and one with a navigation?

[Unknown]
04-18-2005, 08:30 PM
Possibly you could use javascipt and do different links on "doubleclick" events.

v0id
04-18-2005, 08:30 PM
yes, thats it

v0id
04-18-2005, 08:33 PM
can you please elaborate, ive never used javascript before, im only familiar with html/php