PDA

View Full Version : Please, i need help "jump to anchor" script ...


danfuniel11
08-28-2002, 10:40 PM
I would appreciate if somebody could help me with some kind of an "anchor jump script", where you a link and it jumps down to it's accompanying anchor, and "down there" somewhere in the document, there is a link "to the top" of the page, or similar.
If there is anybody that could givme a link to where i can find it, or something like that, That would be just fantastic ;)
thanx a lotttttttttt
:thumbsup: dan

beetle
08-28-2002, 10:53 PM
<html>
<head>
<title>Named Anchors</title>
</head>
<body>
<a name="top></a>
page content <br>
<a href="#1">Link1</a>
<a href="#2">Link2</a>
<a href="#3">Link3</a><br>
<p>page content page content page content page content page content page content page content <a href="#top">top</a></p>
<a name="1"></a>
<p>page content page content page content page content page content page content page content <a href="#top">top</a></p>
<a name="1"></a>
<p>page content page content page content page content page content page content page content <a href="#top">top</a></p>
<a name="1"></a>
<p>page content page content page content page content page content page content page content <a href="#top">top</a></p>
</body>
</html>

justame
08-28-2002, 11:36 PM
dan...
here ya just a go®...

<html>
<head>
<title>Named Anchors</title>
</head>
<body>
<a name="backtotop"> </a>
<a href="#1">Link1</a> <a href="#2">Link2</a> <a href="#3">Link3</a><p>
<a name="1"> </a>link one's page content
<p>
<a href="#backtotop">back to top</a>
<p>
<a name="2"> </a>link twos's page content
<p>
<a href="#backtotop">back to top</a>
<p>
<a name="3"> </a>link three's page content
<p>
<a href="#backtotop">back to top</a>
</body>
</html>



/me just a whispers® to bee...ya were just a close®...'cept you were just a missing® the closing " after top in the <a name= part...
n' tooo??? top is just a reserved® word so bestest to just a use® some other wording...
n' on your just a successive® 'a' names??? ya had 'em alll numbered the same...:O(((

beetle
08-28-2002, 11:40 PM
oops, that I did.

And you are right, top is a reserved word, but not in this context. I was forgetting that the browser auto-recognized #top w/o the named anchor being in place

danfuniel11
08-29-2002, 12:16 AM
thank you sooooo much peoples,
heh, what a dummie i'm ... i didn't know u can do that just with <a href .. >, that's cool,
thanx again both, :cool: