| | |
Anchor tag and layers???
![]() |
•
•
Join Date: Jan 2006
Posts: 43
Reputation:
Solved Threads: 0
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 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...
Download A-Prompt Program Version 1.0
here
here
Last edited by macneato; Sep 25th, 2007 at 9:07 am. Reason: typos
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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!

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 :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
•
•
Join Date: Feb 2005
Posts: 427
Reputation:
Solved Threads: 12
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.

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 :)
http://www.choose-easyweb.com - Not my design, nor my idea :)
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.
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
•
•
•
•
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..
![]() |
Similar Threads
- tag that shows hand on mouseover (JavaScript / DHTML / AJAX)
- Button to open a new browser window (ASP.NET)
- Open In New Window Php (PHP)
- need help with large anchor (HTML and CSS)
- parsing html (Java)
- WebCrawler problem (Java)
- newbie... Java load large picture :) Lit'l help plez (Java)
- Frames question - using FP03 (HTML and CSS)
- How to make title bar not dissappear when changing pages (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Page looks different in Firefox for Mac than Firefox for Windows
- Next Thread: no spaces between links
Views: 3352 | Replies: 9
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
2002 alignment background backgroundcolor beta blog browser browserproblems cart code compatibility containers corporateidentity create css deleted design designing distortion division dreamweaver drupal editor emailmarketing embed explorer firefox font fonts format free frontpage helprequired-urgent hitcounter hosting html ide ie6 ie7 iframe image images input internet internetexplorer iphone javascript jpeg js links list login macbook map maps margin marketshare microsoft mozilla multimedia navigationbars newb object opacity opera override player pnginie6 position positioning prevent problem relative scroll seo shopping strings studio table tables tag templates textcolor theme timecolor tips translation urlseparatedwords validation visual w3c web webform website websitedesign windows7 word wordpress xhtml xml






