Page 1 of 1

Directed link to page

Posted: Mon Aug 22, 2005 9:05 pm
by At0miC
A little thing I want to know,

U know, when u follow a link on a site and then you get somewhere on a page, but not at the top of it. But it's directed to a line, blog, quote whatever, you see the the scrollbeam on the right isn't at the top but somewhere in the middle of the page. Know what I mean? How do you make such a directed link to somewhere else on a page so it won't go to the top but somewhere else u want.

:?:

Posted: Tue Aug 23, 2005 9:18 am
by Bjarne BZR
<a href="http://www.link.to/page.html#An_Anchor">Link to special part of a page</a>
For this to work, the file page.html must contain this markup at the place in the page you want to go directly to:
<A name="An_Anchor">Here!</a>

Posted: Tue Aug 23, 2005 10:04 am
by At0miC
Okay, cool thanks 8-)

Posted: Tue Aug 23, 2005 6:12 pm
by hogleg
After viewing 100's of source codes for html I've never seen this an_anchor........is it rare to use?

Posted: Tue Aug 23, 2005 6:16 pm
by Bjarne BZR
hogleg wrote:After viewing 100's of source codes for html I've never seen this an_anchor........is it rare to use?
:shock:
No, its a very basic HTML usage. Should be VERY common. The name can be anything, does not have to be "An_Anchor", thats just an example. :)

Posted: Tue Aug 23, 2005 7:09 pm
by panTera
If you're using Dreamweaver here's how to do it:

Let's say you have a link on page1 and you want it to take you to the middle of page2.
On page2 (target) place the cursor in the desired location. Go to:
Insert-> Invisible Tags ->Named Anchor

Let's say you named it: middle

Now to make the link on page1 take you to the Anchor on page2, just write #middle at the end of the link, e.g.: ../blabla.com/atomic/page2.htm#middle

Posted: Tue Aug 23, 2005 8:48 pm
by hogleg
Aaaaahh
http://www.qeradiant.com/manual/Q3Rad_M ... #gamedebug

Code: Select all

<h2><a name = "gamedebug">In-game Debug tools</a></h2>
a little slow but very persistant :lol: