What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Linking to a certain area of text help.

Linking to a certain area of text help.
Author: Message:
Tasha
Senior Member
****

Avatar

Posts: 717
Reputation: 81
32 / Female / Flag
Joined: Jan 2005
O.P. Linking to a certain area of text help.
Ok, this is kinda hard to explain, and you may not get it at first, but I assure you, I am trying my best to explain this as well as I can.

What I would like to do is;

You go to page A, (screenshot 1), and click the top link. Then this link takes you to text area.. say.. 5. (screenshot 2). But it isnt simply on a seperate page, you can scroll up or down, and go to the other text areas like on a normal page. When you click link 2, it does the same, accept it goes to a different area of text, per say, area 3, etc, etc.

My brother said something about bookmarks, where the link is something like <a href="http://www.tashaj.info/#something, but he didn't know how to do it.

What I am asking is kind of like the showthread ID thing (to be specific, this: http://shoutbox.menthix.net/showthread.php?tid=49...d=517624#pid517624 ) on these forums. (That should explain it slightly better). Anyway, any idea how you can do this?

Screenshot 1: [Image: screen10so.th.jpg]

Screenshot 2: [Image: screen21me.th.jpg]

Sorry if this isn't explained too well.

Thanks in advance for any help. :happy:

This post was edited on 08-21-2005 at 09:14 PM by Tasha.
www.mycutelobster.co.uk
"Of course it is happening inside your head, Harry,
but why on earth should that mean that it is not real?"
08-21-2005 09:05 PM
Profile PM Web Find Quote Report
saralk
Veteran Member
*****

Avatar

Posts: 2598
Reputation: 38
35 / Male / Flag
Joined: Feb 2003
RE: Linking to a certain area of text help.
you would put

code:
<a name="label">title of section</a>

where you want the page to jump to.

And you put

code:
<a href='page.htm#label'>go to title</a>

as the link to that section
The Artist Formerly Known As saralk
London · New York · Paris
Est. 1989
08-21-2005 09:15 PM
Profile PM Find Quote Report
multimillion2k
Full Member
***


Posts: 362
Reputation: 16
– / Male / –
Joined: May 2005
RE: Linking to a certain area of text help.
Is this what you want, Tasha? If it's on the same page you don't need to write the whole path:

<a href="#link">
Link Text
</a>


and

<a name="link">blah</a>

I think that's all you need.

- oh, too late.

This post was edited on 08-21-2005 at 09:20 PM by multimillion2k.
08-21-2005 09:17 PM
Profile PM Find Quote Report
absorbation
Elite Member
*****

Avatar

Posts: 3636
Reputation: 81
– / Male / Flag
Joined: Feb 2005
RE: Linking to a certain area of text help.
Page Anchors


It's easy tasha :P

<a href="#codeword">whatever words you want to use</A>


To tell the link where to go, this is what you need to do. Copy and paste this code and put it where you want the link to go on your page:

<A name="codeword"></A>

You can use any code word you want.
08-21-2005 09:21 PM
Profile PM Find Quote Report
multimillion2k
Full Member
***


Posts: 362
Reputation: 16
– / Male / –
Joined: May 2005
RE: Linking to a certain area of text help.
Here you go, Tasha!
code:
<a href="#anchorname">This will link to Tasha's code</a>
<a name="anchorname">Now does she understand? If she doesn't, we will cry</a>

So THAT's what [code] is for!
[/spam]

This post was edited on 08-21-2005 at 09:46 PM by multimillion2k.
08-21-2005 09:43 PM
Profile PM Find Quote Report
Tasha
Senior Member
****

Avatar

Posts: 717
Reputation: 81
32 / Female / Flag
Joined: Jan 2005
O.P. RE: Linking to a certain area of text help.
quote:
Originally posted by multimillion2k
<a href="#link">This will link to Tasha's code</a>
<a name="link">Now does she understand? If she doesn't, we will cry</a>


You're gonna have to cry, coz I still don't understand. Getting confused here. for my test, i'm linking to this page: http://www.tashaj.info/?page_id=44 (its jsut a test page with a loada stupid writing on it). And the word I want it to go to, is "label" (thats again jsut for my test.)

So where do I put the word, and where do I put the page id?
www.mycutelobster.co.uk
"Of course it is happening inside your head, Harry,
but why on earth should that mean that it is not real?"
08-21-2005 09:46 PM
Profile PM Web Find Quote Report
andrey
elite shoutboxer
****

Avatar

Posts: 795
Reputation: 48
– / Male / Flag
Joined: Aug 2004
RE: Linking to a certain area of text help.
let's say you want to link to the word "eee.e" which is on http://www.tashaj.info/?page_id=44.

On http://www.tashaj.info/?page_id=44 you put <a name="whatever">eee.e</a>

An then you put <a href="http://www.tashaj.info/?page_id=44#whatever">This links to eee.e</a> on the page you are linking from.


Or for your first example, on page A you put <a href="url_for_page_2#anchor">Link 1</a>
and on page B you put <a name="anchor">word_where_link_1_should_link_to</a>


Take a look at A Beginner's Guide to HTML - Links to Specific Sections (tip: bookmark it, it's quite useful :p)


Hope this was understandable :s
Yup, you got it (Y)

This post was edited on 08-21-2005 at 10:17 PM by andrey.
[Image: w2kzw8qp-sq2_dz_b_xmas.png]
08-21-2005 09:56 PM
Profile PM Find Quote Report
Tasha
Senior Member
****

Avatar

Posts: 717
Reputation: 81
32 / Female / Flag
Joined: Jan 2005
O.P. RE: Linking to a certain area of text help.
Thank you so so much andrey. :p It was that link to the HTML guide that helped me. Thanks alot to everyone else who tried to help too, i'm just a bit stupid when it comes to working things out with code.
www.mycutelobster.co.uk
"Of course it is happening inside your head, Harry,
but why on earth should that mean that it is not real?"
08-21-2005 10:25 PM
Profile PM Web Find Quote Report
multimillion2k
Full Member
***


Posts: 362
Reputation: 16
– / Male / –
Joined: May 2005
RE: Linking to a certain area of text help.
Your only real problem was that you had
<A href="http://www.tashaj.info/"*http://www.tashaj.info/#something,"</a> (some unrecogniseable character)
and not
<A href="http://www.tashaj.info/”>http://www.tashaj.info/#something,"</a>
But I guess you worked that out :P
Or you didn't, and just started from scratch.
08-21-2005 10:36 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On