Click to See Complete Forum and Search --> : On pages links?


Nasimov
11-26-2003, 02:55 AM
How would I create links that would go to specific spots on my pages. How would I do that?

Thanks.

Pittimann
11-26-2003, 06:48 AM
Hi!

If the spot to link to is in the same document, do something like that:
------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Your title</title>
</head>
<body>
Go to: <a href="#Bookmark1" title="&nbsp;Click here to go to Chapter 2...&nbsp;">Chapter 2</a> - <a href="#Bookmark2" title="&nbsp;Click here to go to Chapter 3...&nbsp;">Chapter 3</a> - <a href="#Bookmark3" title="&nbsp;Click here to go to Chapter 4...&nbsp;">Chapter 4</a> - <a href="#Bookmark4" title="&nbsp;Click here to go to Chapter 5...&nbsp;">Chapter 5</a>
<br><br>
Chapter 1.
blah blah
<br><br><a name="Bookmark1"></a>
Chapter 2.
blah blah
<br><br><a name="Bookmark2"></a>
Chapter 3.
blah blah
<br><br><a name="Bookmark3"></a>
Chapter 4.
blah blah
<br><br><a name="Bookmark4"></a>
Chapter 5.
blah blah
</body>
</html>
------------------------
If you need to direct the user to a bookmark in another document
insert the bookmark in that document where the user is supposed to be directed (<a name="NameOfBookmark"></a>).
The Link to that should be like: <a href="DocumentToBeOpened#NameOfBookmark">Linktext</a>

Cheers - Pit