Hyperlink Question

  • alamode
  • Professor
  • Professor
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 927
  • Loc: Pakistan
  • Status: Offline

Post June 23rd, 2009, 8:48 am

Yeah its me again, Another question :lol:

Just wanted to know that how do i create a Hyperlink to a heading on the same page? Like my page is getting a bit long so i want to have a menu on top of the page for each heading so that they can click on the heading and then it will automatically scroll down to the heading.. (Just like in wikipedia)..

How do i do this?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 23rd, 2009, 8:48 am

  • natas
  • PHP Ninja
  • Proficient
  • No Avatar
  • Joined: Mar 28, 2009
  • Posts: 305
  • Loc: AFK
  • Status: Offline

Post June 23rd, 2009, 8:55 am

You can do this with anchor tags. <a>

for the article that you want to link to, wrap it in an anchor tag and give it a name

Code: [ Select ]
<a name="example">Example Header</a>


Then to link to it from the top menu, simply use a link..

Code: [ Select ]
<a href="#example">Click here to see the example</a>
Custom Web Design
  • alamode
  • Professor
  • Professor
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 927
  • Loc: Pakistan
  • Status: Offline

Post June 23rd, 2009, 9:22 am

Thanks a ton :)
  • rickysmartin
  • Born
  • Born
  • No Avatar
  • Joined: Jun 05, 2009
  • Posts: 2
  • Loc: delhi
  • Status: Offline

Post July 10th, 2009, 2:38 pm

<a href="http://yourdomain.com">your heading</a>


u have no need to write it on notepad ...just use the html editor dreamweaver.
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post July 10th, 2009, 2:39 pm

rickysmartin wrote:
<a href="http://yourdomain.com">your heading</a>


u have no need to write it on notepad ...just use the html editor dreamweaver.


I don't see any mention of notepad, WYSIWYG's, or any other type editor?
I'd love to change the world, but they won't give me the source code.
  • batmanm
  • Born
  • Born
  • No Avatar
  • Joined: Jul 11, 2009
  • Posts: 1
  • Status: Offline

Post July 11th, 2009, 3:12 pm

Hi

Have anyone used web easy before to do scrips?

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 129 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.