Directed link to page

Post everything that hasn't to do with MOHAA or MOHPA here, including site feedback/suggestions.

Moderator: Moderators

Post Reply
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Directed link to page

Post 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.

:?:
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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>
Admin .MAP Forums
Image
Head above heels.
User avatar
At0miC
General
Posts: 1164
Joined: Fri Feb 27, 2004 11:29 pm
Location: The Netherlands

Post by At0miC »

Okay, cool thanks 8-)
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post by hogleg »

After viewing 100's of source codes for html I've never seen this an_anchor........is it rare to use?
"all the governments in the world are corrupt and in the hands of the Illuminati"
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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. :)
Admin .MAP Forums
Image
Head above heels.
panTera
Brigadier General
Posts: 573
Joined: Wed Jan 29, 2003 11:46 pm
Location: The Netherlands
Contact:

Post 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
User avatar
hogleg
General
Posts: 1577
Joined: Tue Sep 09, 2003 5:23 pm
Location: Down South Hillbilly Country

Post 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:
"all the governments in the world are corrupt and in the hands of the Illuminati"
Post Reply