Print Page | Close Window

2 a herf tags?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6243
Printed Date: 31 March 2026 at 3:07pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: 2 a herf tags?
Posted By: Lucent
Subject: 2 a herf tags?
Date Posted: 07 October 2003 at 6:26pm
is it possible to do 2 <a herf=""> to an graphic botton?  I want 1 to open up certain parts of my tree menu, and the other to load to another page.  I tried to do it, but it didnt really work. is there any other way to do so?? thanks



Replies:
Posted By: Gullanian
Date Posted: 07 October 2003 at 6:28pm
You could use Javascript OnClick, but I dont see why you cant put the anchor link around the image?


Posted By: KCWebMonkey
Date Posted: 07 October 2003 at 7:36pm
if you want different parts of an image to go to different links, then you want to make an http://www.htmlgoodies.com/tutors/cs_imap.html - Image Map



Posted By: Lucent
Date Posted: 08 October 2003 at 8:25am

I have a tree menu on the page, I need this graphic button to open up certain part of the tree menu, and also load to another page.

//<a href="javascript: d.closeAll(); d.openTo(1, true);"><img src="button_123.gif" width="67" height="88" alt="123"></a>

how can I do something like this?..see the red part where I added, but doesn't work..

//<a href="123.asp"><a href="javascript: d.closeAll(); d.openTo(1, true);"><img src="button_123.gif" width="67" height="88" alt="123"></a></a>



Posted By: MorningZ
Date Posted: 08 October 2003 at 9:42am

and hell yeah that wouldnt work.....

you are going to have to use Javascript as mentioned above....

run a function that changes the URL in the current window and also changes the window.href of the other frame....



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: FLATLINE
Date Posted: 09 October 2003 at 4:01pm

Do this:

//<a href="123.asp" onClick="javascript: d.closeAll(); d.openTo(1, true);"><img src="button_123.gif" width="67" height="88" alt="123"></a>



-------------
Visit my site: http://darkgreen.service-club.net - DarkGreen HQ



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net