Anchor tag and layers???

Reply

Join Date: Jan 2006
Posts: 43
Reputation: Syakoban is an unknown quantity at this point 
Solved Threads: 0
Syakoban Syakoban is offline Offline
Light Poster

Anchor tag and layers???

 
0
  #1
Sep 25th, 2007
Hi,

I haven't had the need to use an anchor tag like <a href="wahtever.html#here">blah blah</a> and <a name="#here"></a> in years. Now that I do, I'm using it on a page with layers too. I noticed that if I name the layer the same as the anchor (like <div id="here"), a link from another page will jump to that layer location. But...

Is this reliable? Does it work in all major browsers? Is this valid code or a fluke thing?

Thanks.
I get by with a little help from my friends...
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 309
Reputation: macneato is an unknown quantity at this point 
Solved Threads: 38
macneato's Avatar
macneato macneato is offline Offline
Posting Whiz

Re: Anchor tag and layers???

 
0
  #2
Sep 25th, 2007
Download A-Prompt Program Version 1.0
here
Last edited by macneato; Sep 25th, 2007 at 9:07 am. Reason: typos
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: Anchor tag and layers???

 
0
  #3
Sep 25th, 2007
Try looking up Anchor and Target

By using the ID attribute, you have basically made a "jump to link"....

usually, in the anchor, you'd have to have something like... href="blah.html/#thisonegere"... and in the page markup have an id for "thisonehere".
The link is jumping to that point!
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 43
Reputation: Syakoban is an unknown quantity at this point 
Solved Threads: 0
Syakoban Syakoban is offline Offline
Light Poster

Re: Anchor tag and layers???

 
0
  #4
Sep 25th, 2007
Originally Posted by autocrat View Post
you have basically made a "jump to link"....
What is the real difference? Will the "jump to link" work in the major browsers?

Thanks.
I get by with a little help from my friends...
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 427
Reputation: autocrat is on a distinguished road 
Solved Threads: 12
autocrat autocrat is offline Offline
Posting Pro in Training

Re: Anchor tag and layers???

 
0
  #5
Sep 26th, 2007
arg... go look it up

It should work i most modern browsers and the majority of text-readers.
go download some other browsers and test it

It's not new, nor is it phenominal... it's the same as the "Back to top" stuff on a lot of sites...
Look it up, read the usage andresults, then decide if you want to use it.

In my opinion... if you link to a page, it should start at the top.
If you link to an item on the page, you should go to that item (the jump link)... possibly with an option to go to the main page without jumping to the item.

But it boils down to choice.
Sometimes life holds wonderful suprises - shame I sleep through them all.
http://www.choose-easyweb.com - Not my design, nor my idea :)
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 171
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Anchor tag and layers???

 
0
  #6
Sep 29th, 2007
They are talking about deprecating the name attribute in anchor tags.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 43
Reputation: Syakoban is an unknown quantity at this point 
Solved Threads: 0
Syakoban Syakoban is offline Offline
Light Poster

Re: Anchor tag and layers???

 
0
  #7
Sep 29th, 2007
Then what will replace it?
I get by with a little help from my friends...
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 171
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Anchor tag and layers???

 
0
  #8
Oct 7th, 2007
I don't know.

They never came up with a good replacement for the center tag, or starting an ordered list at a number other than 1. The elitists making the decisions don't consider the fact that some people have uses for html other than books and newspapers.

Some possibilities include the id attribute, and a relative version of the href attribute.
Last edited by MidiMagic; Oct 7th, 2007 at 3:52 am.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 14
Reputation: Lun is an unknown quantity at this point 
Solved Threads: 0
Lun's Avatar
Lun Lun is offline Offline
Newbie Poster

Re: Anchor tag and layers???

 
0
  #9
May 28th, 2009
Originally Posted by Syakoban View Post
Hi,

I haven't had the need to use an anchor tag like <a href="wahtever.html#here">blah blah</a> and <a name="#here"></a> in years. Now that I do, I'm using it on a page with layers too. I noticed that if I name the layer the same as the anchor (like <div id="here"), a link from another page will jump to that layer location. But...

Is this reliable? Does it work in all major browsers? Is this valid code or a fluke thing?

Thanks.


Thank You!!!!!
learning takes time..
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,266
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 171
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Anchor tag and layers???

 
0
  #10
May 28th, 2009
The id attribute is replacing the name attribute.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 3352 | Replies: 9
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC