Ask Experts Questions for FREE Help!
Answer   ||    Advanced Search

Ask your question or search...
International Sites: Nederlandse experts vragen
User Name 
Password 
Join   Forgot password? 

Home > Computers & Technology > Internet & the Web   »   Can I put a named anchor tag at an image location?

Question
 
 
#1  
Old Oct 11, 2006, 11:41 AM
NeedKarma's Avatar
NeedKarma
Über Member
NeedKarma is offline
 
Join Date: Dec 2004
Location: Online
Posts: 7,603
NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.
Can I put a named anchor tag at an image location?

Something like this:

Code:
<A name="NKmessage"><IMG alt="" src="/xxxx/Gord.jpg"> </A>
Or do you absolutely have to have text in the anchor tag?

Reply With Quote
 
     

Answers
 
 
Old Oct 11, 2006, 12:25 PM   #2  
Administrator
admin is offline
 
admin's Avatar
 
Join Date: Sep 2004
Location: Los Angeles, CA
Posts: 205
admin See this member's comment history on his/her Profile page.
Call admin via Skype™
Sure you can use "name" in an anchor tag without anchor text, but if you don't use href then some older browsers may not react to a # href within another link.

Comments on this post
NeedKarma agrees: I wasn't doing the href manually - I was allowing a piece of software to do it and it was doig it wrong. Thanks for the heads up.
  Reply With Quote
 
     
 
 
Old Oct 11, 2006, 03:25 PM   #3  
Über Member
NeedKarma is offline
 
NeedKarma's Avatar
 
Join Date: Dec 2004
Location: Online
Posts: 7,603
NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.
I tried it using IE and when I try the url that has the "#NKmessage" at the end I simply end up at the top of the page.
  Reply With Quote
 
     
 
 
Old Oct 16, 2006, 09:50 AM   #4  
Ultra Member
LTheobald is offline
 
LTheobald's Avatar
 
Join Date: Feb 2004
Location: Cambridge, UK
Posts: 1,047
LTheobald See this member's comment history on his/her Profile page.LTheobald See this member's comment history on his/her Profile page.
Call LTheobald via Skype™ Send a message via MSN to LTheobald
The two lines of :
Code:
<a name="img"><img src="something.jpg" alt="something"></a>
and then

Code:
<a href="#img">Back to image</a>
Worked for me in IE 7, Firefox and whatever the internal browser in HTML Kit is based on.

Comments on this post
NeedKarma agrees: Thanks for showing portion of code - that helped.
  Reply With Quote
 
     
 
 
Old Oct 16, 2006, 09:56 AM   #5  
Über Member
NeedKarma is offline
 
NeedKarma's Avatar
 
Join Date: Dec 2004
Location: Online
Posts: 7,603
NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.
I'll try that. Thanks.
  Reply With Quote
 
     
 
 
Old Oct 16, 2006, 11:08 AM   #6  
Über Member
NeedKarma is offline
 
NeedKarma's Avatar
 
Join Date: Dec 2004
Location: Online
Posts: 7,603
NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.NeedKarma See this member's comment history on his/her Profile page.
Works like a charm. Thanks Guys!
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Ask your question or search...



Similar Threads
reat tag light problems
(0 replies)
Anchor furniture down
(1 replies)
mailto tag
(1 replies)

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread

Advanced Search

Bookmarks





Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 03:40 PM.