Shoutbox

Linking to a certain area of text help. - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Linking to a certain area of text help. (/showthread.php?tid=49286)

Linking to a certain area of text help. by Tasha on 08-21-2005 at 09:05 PM

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:


RE: Linking to a certain area of text help. by saralk on 08-21-2005 at 09:15 PM

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
RE: Linking to a certain area of text help. by multimillion2k on 08-21-2005 at 09:17 PM

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.


RE: Linking to a certain area of text help. by absorbation on 08-21-2005 at 09:21 PM

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.
RE: Linking to a certain area of text help. by multimillion2k on 08-21-2005 at 09:43 PM

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]
[/code]
RE: Linking to a certain area of text help. by Tasha on 08-21-2005 at 09:46 PM

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?
RE: Linking to a certain area of text help. by andrey on 08-21-2005 at 09:56 PM

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)
RE: Linking to a certain area of text help. by Tasha on 08-21-2005 at 10:25 PM

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.


RE: Linking to a certain area of text help. by multimillion2k on 08-21-2005 at 10:36 PM

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.