PDA

View Full Version : How do I ???


Dr Juice
08-01-2002, 02:30 AM
- Post a link so when people click on it the link will take them to a designated part of the page?, hopefully you know what I mean.

x_goose_x
08-01-2002, 02:41 AM
press of the button "http://"

http://www.google.com

Dr Juice
08-01-2002, 02:51 AM
I dont think you know what I mean. I need the code that when someone clicks a link it takes them midway down the webpage or to the bottom ect.

for example:)

If you have a page with a bunch of different articles and you want your visitors to jump to a certain area or article, what is the code for this?, so visitors dont have to scroll down. Hope this is more clear.

boxer_1
08-01-2002, 03:00 AM
Here's an example of what you are talking about.

<html>
<head>
<title>Example</title>
</head>
<body>
<a href="#mid">Click here to go to "mid".</a>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
You are here <a name="mid" />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
The End!
</body>
</html>

Edit: Sorry to be so short with the answer...got interrupted. Anyway, it's called an "anchor". See here for more details: http://www.ncsu.edu/it/edu/html_trng/html_links.html (about halfway down the page, "Linking to a named anchor").

Sk8er9547
08-01-2002, 04:56 AM
Yeah, targets are the way to go. All you need to do is include a # with your link tag like this:

<a href="#link">This is a link</a>

And then include a target where you want the link to take you in the page.

<a name="link">This is where you are taken</a>