954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Anchor tag and layers???

Hi,

I haven't had the need to use an anchor tag like blah blah and 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

Syakoban
Light Poster
46 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

Download A-Prompt Program Version 1.0
here

macneato
Posting Pro in Training
421 posts since Jun 2007
Reputation Points: 46
Solved Threads: 48
 

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!

autocrat
Posting Pro in Training
431 posts since Feb 2005
Reputation Points: 63
Solved Threads: 12
 
you have basically made a "jump to link"....

What is the real difference? Will the "jump to link" work in the major browsers?

Thanks.

Syakoban
Light Poster
46 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

arg... go look it up :D

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.

autocrat
Posting Pro in Training
431 posts since Feb 2005
Reputation Points: 63
Solved Threads: 12
 

They are talking about deprecating the name attribute in anchor tags.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

Then what will replace it?

Syakoban
Light Poster
46 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

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.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

Hi,

I haven't had the need to use an anchor tag like blah blah and 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 Thank You!!!!!

Lun
Newbie Poster
14 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

The id attribute is replacing the name attribute.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You