FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

link to diff. parts of page ie) #top

 


xframe
Hey I'm using a jump menu in dreamwear and I was wondering how to link to different parts of the page ie)#TOP to go to top of the page...but what about a certain paragraph on a page?
niranvv
While giving links try to give some name for the links, that is specify one atribute name="somename" to the <a> tag!
And you can navigate to tehre by simly specifying as href="#somename"

For example, are giving like this:


Chapter Index
Chapter1
Chapter2
Chapter3

Chapter 1 Explained:
----------
----------

Chapter 2 Explaned:
----------
----------

Chapter 3 Explained:
----------
----------


Where, by clicking the top Chapter links, it shuld be navigated to someplace inside the same document itself!

So, give links to the chapter title(In the body part) as:
Code:
<a href="#" name="MyChapter1">Chapter 1 Explained:</a>

Give diferent names for different links!

Then, you can navigate to he particular body part from index as giving <a> tag like this:

Code:
<a href="#MyChapter1">Chapter1</a>

so that, by clicking chapter 1 in index, wll jump to chapter 1 explained part in the same body!!


Last edited by niranvv on Wed Aug 16, 2006 10:47 am; edited 1 time in total
xframe
Thank you very much!!!
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.