Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Directing a text link to a different part of the same page
Old 12-24-2010, 12:03 PM Directing a text link to a different part of the same page
Skilled Talker

Posts: 51
Name: Mark Strobel
Trades: 0
How do I go about having a text link direct the viewer to the part of the same page where that specific information can be found so that viewers do not have to do a lot of scrolling before reaching the desired info? Thanks.
MarkStrobel3367 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-24-2010, 12:12 PM Re: Directing a text link to a different part of the same page
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,391
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Named Anchors
http://www.w3schools.com/html/html_links.asp
http://www.w3schools.com/html/tryit....link_locations
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-24-2010, 03:18 PM Re: Directing a text link to a different part of the same page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You don't need the old "a name" stuff, using css you can just put an id on say a heading or other element where you want the internal link to be, and it works exactly the same w/o any additional markup.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-24-2010, 08:23 PM Re: Directing a text link to a different part of the same page
xenobiologist's Avatar
Novice Talker

Posts: 10
Trades: 0
Quote:
Originally Posted by LadynRed View Post
You don't need the old "a name" stuff, using css you can just put an id on say a heading or other element where you want the internal link to be, and it works exactly the same w/o any additional markup.
To elaborate a little here's an crude example but it works; Here is the code example for the word services being the navigational link:
<a href="#services">services</a>

then the place to where that will link would go to will look like this:
<div id="services">Services text here</div>

In the above example the services link that is surrounded with the <a> tag is the actual link, and the <div id="services"> is where you end up after clicking the services link. You have to make sure that the #Whatever matches the <div id="whatever">
__________________

Please login or register to view this content. Registration is FREE
xenobiologist is offline
Reply With Quote
View Public Profile
 
Old 12-30-2010, 10:16 AM Re: Directing a text link to a different part of the same page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
<div id="services">Services text here</div>
Umm.. using a div for a heading is not necessary and not proper semantic coding. A better example would be to actually use a proper heading tag:

Quote:
<h1 id="services">Services</h1>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-31-2010, 11:24 PM Re: Directing a text link to a different part of the same page
radiant_luv's Avatar
Skilled Talker

Posts: 56
Location: WebVille
Trades: 0
I doubt on the OPs intention, he created same thread in other forum
Code:
http://forums.digitalpoint.com/showthread.php?t=2041754
but never replied to any of the post.
__________________

Please login or register to view this content. Registration is FREE

Professional & Quality Website Design
Custom Layout Design, PSD to XHTML, Wordpress
radiant_luv is offline
Reply With Quote
View Public Profile Visit radiant_luv's homepage!
 
Old 01-02-2011, 10:38 AM Re: Directing a text link to a different part of the same page
Digital Friend's Avatar
...

Posts: 2,017
Name: Marc
Location: The Caribbean
Trades: 0
Quote:
Originally Posted by radiant_luv View Post
I doubt on the OPs intention, he created same thread in other forum
Code:
http://forums.digitalpoint.com/showthread.php?t=2041754
but never replied to any of the post.
Maybe the member wanted to see which forum would have answered the question first,
__________________
Blackberry Torch - Make it your next smartphone, or we'll find you. <_<
Digital Friend is offline
Reply With Quote
View Public Profile
 
Old 01-02-2011, 10:50 AM Re: Directing a text link to a different part of the same page
radiant_luv's Avatar
Skilled Talker

Posts: 56
Location: WebVille
Trades: 0
Quote:
Originally Posted by Digital Friend View Post
Maybe the member wanted to see which forum would have answered the question first,
may be, I had posted with right direction within an hour of the thread was created. Just thought it was unnecessery by posting in multiple forum unless the issue is real tricky or there is no solution in sight.
__________________

Please login or register to view this content. Registration is FREE

Professional & Quality Website Design
Custom Layout Design, PSD to XHTML, Wordpress
radiant_luv is offline
Reply With Quote
View Public Profile Visit radiant_luv's homepage!
 
Old 01-02-2011, 10:56 AM Re: Directing a text link to a different part of the same page
UghOh's Avatar
Novice Talker

Posts: 14
Name: Viking Crab
Location: Norway
Trades: 0
Simple and no javascript needed:

Add this to the part you want to scroll to:
Code:
<a name="SkipHere"><h1>Some subsection</h1></a>
To link to that section on the page, use a link like this:
Code:
<a href="subpage.html#SkipHere">Skip Go and go right to the subsection</a>
Simple!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|

Please login or register to view this content. Registration is FREE
UghOh is offline
Reply With Quote
View Public Profile Visit UghOh's homepage!
 
Old 01-03-2011, 08:57 PM Re: Directing a text link to a different part of the same page
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Let me repeat myself - the deprecated "name" attribute is NOT necessary -- see examples in posts above.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Directing a text link to a different part of the same page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31247 seconds with 12 queries