Please support our Site Layout and Usability advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Nov 2008
Posts: 816
Reputation: cohen is an unknown quantity at this point 
Solved Threads: 42
Featured Poster
cohen's Avatar
cohen cohen is offline Offline
Practically a Posting Shark

Linking

 
0
  #1
Jan 5th, 2009
Hello all,

I need some help with linking.

I someone clicks on "Step one" i want it, to go down the page and to where step one is located, and then when you click top of page, it goes up to the top of the page...

How do i do that??

Cohen
Last edited by cohen; Jan 5th, 2009 at 9:45 pm.
Cohen's Site www.cohenl.com

Do not PM me for support!!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 79
Reputation: MatEpp is an unknown quantity at this point 
Solved Threads: 12
MatEpp MatEpp is offline Offline
Junior Poster in Training

Re: Linking

 
0
  #2
Jan 6th, 2009
Originally Posted by cohen View Post
Hello all,

I need some help with linking.

I someone clicks on "Step one" i want it, to go down the page and to where step one is located, and then when you click top of page, it goes up to the top of the page...

How do i do that??

Cohen
Ha! I got curious and looked it up. This article seems to explain it well.

http://www.yourhtmlsource.com/text/internallinks.html

Good question, never thought about that one before.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 816
Reputation: cohen is an unknown quantity at this point 
Solved Threads: 42
Featured Poster
cohen's Avatar
cohen cohen is offline Offline
Practically a Posting Shark

Re: Linking

 
0
  #3
Jan 6th, 2009
Thanks! Works a treat!

Cohen
Cohen's Site www.cohenl.com

Do not PM me for support!!!
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 211
Reputation: macneato is an unknown quantity at this point 
Solved Threads: 18
macneato's Avatar
macneato macneato is offline Offline
Posting Whiz in Training

Re: Linking

 
0
  #4
Jan 8th, 2009
I know its solved and all... but just incase any of you other people are interested and don't feel like going to read it up on another site, here is how its done.

To link to a specific title (text) on a page, simply give it an id.
E.g.
<html>
<head>
<title> Linking to specific content </title>
</head>
<body>
<p>Hi welcome to my website, click <a href="#skills">here</a> to view my skills</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris pede. Donec augue. Vivamus vitae nisi quis quam viverra semper. Etiam fringilla viverra dui. Sed in elit. Nulla a nisl. Morbi non erat sit amet odio gravida pulvinar. Aliquam sodales. Praesent venenatis ante vel purus. Vivamus sapien felis, lobortis facilisis, imperdiet nec, cursus ut, neque. Morbi id enim ut elit scelerisque dictum. Cras aliquam ornare odio. </p>
<div id="skills"><h2> Skills </h2></div>
<p>Fusce faucibus quam id libero. Aenean volutpat tempus est. Mauris interdum lobortis arcu. Nullam ultrices dui. Cras leo sapien, porttitor ac, tincidunt id, suscipit volutpat, erat. Nullam vulputate, justo eu vulputate convallis, sem ipsum porta nulla, vel ultricies eros elit sit amet metus. Aliquam fringilla, magna nec consequat aliquet, augue sapien viverra elit, sed convallis est magna sit amet nibh. Vestibulum pharetra tincidunt felis. Morbi vitae mi. Cras suscipit. Quisque pede diam, tempor eget, posuere porttitor, fringilla sed, erat. Quisque vulputate neque sit amet metus. Vivamus arcu nisi, interdum non, lacinia ac, dictum sed, orci. </p>
</body>
</html>

To link back to the top of a page is quite easier.
E.g.
<html>
<head><title> Link to the top of the page </title>
</head>
<body>
<p>Nam et lorem sit amet lectus ultricies ultrices. Nam bibendum dui at nisl. Donec rutrum, nisi ut auctor luctus, leo nulla pretium leo, in consequat risus sem sed urna. Sed fermentum, dui ac faucibus feugiat, nisi mi venenatis quam, eu pellentesque nisl mi adipiscing risus. In feugiat. Vivamus metus ligula, sagittis ut, hendrerit a, adipiscing eget, eros. Curabitur imperdiet leo. Nullam eu libero. Aenean volutpat est adipiscing ipsum. Donec ac est. Duis tristique. Suspendisse urna tellus, vehicula eu, tempor vel, lacinia ut, nunc. </p>
<p>Fusce euismod nisl a eros. Phasellus facilisis. Nam odio. Praesent et lacus. Nullam ac tortor ut orci sollicitudin dictum. Quisque risus arcu, pharetra vel, ullamcorper congue, sagittis eget, orci. Nulla facilisi. Suspendisse potenti. Curabitur nisi nisl, viverra a, ultrices adipiscing, sollicitudin non, lectus. Sed cursus ultrices metus. Curabitur et leo eu tellus venenatis adipiscing. Curabitur ipsum. Maecenas facilisis mauris et mi. </p>
<p><a href="#top"> back to top </a></p>
</html>

All done
Last edited by macneato; Jan 8th, 2009 at 3:55 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,203
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 164
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Linking

 
0
  #5
Jan 10th, 2009
Now we just have to teach the beginners the meaning of that lorem ipsum stuff.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 816
Reputation: cohen is an unknown quantity at this point 
Solved Threads: 42
Featured Poster
cohen's Avatar
cohen cohen is offline Offline
Practically a Posting Shark

Re: Linking

 
0
  #6
Jan 10th, 2009
Thanks!

Cohen
Cohen's Site www.cohenl.com

Do not PM me for support!!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 79
Reputation: Zero13 is an unknown quantity at this point 
Solved Threads: 11
Zero13 Zero13 is offline Offline
Junior Poster in Training

Re: Linking

 
0
  #7
Feb 16th, 2009
This is you want to know.
One link to top of page and another to bottom.
First, you type two link element in your html document.
e.g., <a>--</a> <a>--</a>

Then, you set your link which you want to link top/bottom

e.g., <a href="#bottom" id="top">To Bottom</a>
<a href="#top" id="bottom">To Top</a>

You clip "To Bottom", the link go to the bottom of page
and so you clip "To Top", the link go to the top of page.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,318
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Linking

 
0
  #8
Feb 16th, 2009
Try this type of 'goto top' link
the style would be in a styleshweet in a page but this is an example
  1. <a href='#top' style='background: transparent; top: auto; left: auto; bottom: 1px; right: 1px; position: fixed;'> GoTo Top </a>
creates a link that remains in the bottom right corner of the window on resize or scroll and always links to the top of the page.
Its the last line in the include(menu) so appears on every page
Last edited by almostbob; Feb 16th, 2009 at 8:01 am.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC