HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 6th, 2000, 05:10 AM
marcus of exley marcus of exley is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 12 marcus of exley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi i have seen this done on a few sites for long documents to be able to click on a hyperlink and be taken straight to the part of the document that it relates to , can any one tell me how this is done?

Reply With Quote
  #2  
Old July 6th, 2000, 11:46 AM
yoshi yoshi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 108 yoshi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to yoshi
marcus of exley,

Linking within a page is not done with JavaScript, it is done with plain old HTML.

At the top of a page, you may want to have a link to part of that page, possibly near the bottom (an "anchor").
For the link at top, simply use this format:
<A HREF="(NameOfPage)#(NameOfAnchor)">your link</A>
For (NameOfPage), use the name of this web page (ex: index.tml).
For (NameOfAnchor), choose a name for this anchor at the bottom.

At the bottom (where you want the link to point to), include this tag:
<A NAME="(NameOfAnchor)">text</A>
For (NameOfAnchor), use the same anchor name that you used above (for the link).

You can have more than one anchor (and link) on a page by using various names for your anchors.

Good Luck!
yoshi
datera@datera.com http://www.datera.com


[This message has been edited by yoshi (edited July 06, 2000).]

[This message has been edited by yoshi (edited July 06, 2000).]

Reply With Quote
  #3  
Old July 21st, 2000, 01:29 PM
jonathanhahn jonathanhahn is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Santa Clara, CA, USA
Posts: 3 jonathanhahn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Yoshi,

If you had two frames, how can you move a page up and down to where you want from another frame? Kind of like the feature you talked about but controlling from another frame(without reloading the page).

Thanks in advance,
jon

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by yoshi:
marcus of exley,

Linking within a page is not done with JavaScript, it is done with plain old HTML.

At the top of a page, you may want to have a link to part of that page, possibly near the bottom (an "anchor").
For the link at top, simply use this format:
<A HREF="(NameOfPage)#(NameOfAnchor)">your link</A>
For (NameOfPage), use the name of this web page (ex: index.tml).
For (NameOfAnchor), choose a name for this anchor at the bottom.

At the bottom (where you want the link to point to), include this tag:
<A NAME="(NameOfAnchor)">text</A>
For (NameOfAnchor), use the same anchor name that you used above (for the link).

You can have more than one anchor (and link) on a page by using various names for your anchors.

Good Luck!
yoshi
datera@datera.com http://www.datera.com


[This message has been edited by yoshi (edited July 06, 2000).]

[This message has been edited by yoshi (edited July 06, 2000).]
[/quote]


Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Linking to a specific part of a web page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway