Be a Supporter!

#below stuff herez

  • 457 Views
  • 5 Replies
New Topic Respond to this Topic
64
64
  • Member since: Feb. 16, 2004
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
#below stuff herez 2006-11-05 16:11:43 Reply

I've seen some sites where if you type the site with a # and some kind of label, it'll go down to it automatically.

How do you do that?

seel
seel
  • Member since: Jun. 27, 2005
  • Offline.
Forum Stats
Member
Level 21
Musician
Response to #below stuff herez 2006-11-05 16:21:09 Reply

The site must contain labels aka anchors, that is, <a> tags with names. So if there are any <a> tags with names you just put #thenameofthetag at the end of the url to go there.

example:
[a name="asdf" id="asdf"][/a] (where [ and ] is replaced with <a nd >)
and if the url is http://www.asdf.com/bigpage.html
you change it to http://www.asdf.com/bigpage.html#asdf

Pilot-Doofy
Pilot-Doofy
  • Member since: Sep. 13, 2003
  • Offline.
Forum Stats
Member
Level 37
Musician
Response to #below stuff herez 2006-11-05 21:20:13 Reply

You don't need the ID attribute though.

henke37
henke37
  • Member since: Sep. 10, 2004
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to #below stuff herez 2006-11-06 03:49:26 Reply

Yes, you do.
Firefox(and related browsers) only uses the id.


Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.

Jessii
Jessii
  • Member since: Feb. 10, 2005
  • Offline.
Forum Stats
Member
Level 36
Movie Buff
Response to #below stuff herez 2006-11-06 08:50:18 Reply

At 11/6/06 03:49 AM, henke37 wrote: Yes, you do.
Firefox(and related browsers) only uses the id.

That and if you're using XHTML, it probably won't validate without the ID. I had an image map that wouldn't validate without an ID a few months ago, so I'm assuming the same thing.

seel
seel
  • Member since: Jun. 27, 2005
  • Offline.
Forum Stats
Member
Level 21
Musician
Response to #below stuff herez 2006-11-06 10:36:21 Reply

Yes it's pretty good to have both id and name or it might fuck up one or another way..