Click to See Complete Forum and Search --> : Question


lunitari_8100
07-30-2003, 01:38 PM
I've got a pretty basic question...I hope :) I will try to explain as best I can so that I don't seem loopy. I want to have an alphabetical index at the top of my page and underneath I'm going to have a table sorted by letter. Now what I want to do is instead of having ppl click on the letter 'a' and then wait for a new page containing the a entries to come up I want to instead have it all on the same page and when they click 'a' it stays on the same page but just drops down to the 'a' section. I've seen it done on other sites but I have no idea how to accomplish it. Any help would be very much appreciated.

Thanks!

pyro
07-30-2003, 01:40 PM
You need to use anchors. Basically, what it is is an <a> tag that you give a name, something like this: <a name="a"></a> or <a name="b"></a>. Then, what you do is insert that code where you want the page to drop to, and link to them like this: <a href="#a">A</a> or <a href="#b">B</a>

Wozza
07-30-2003, 11:10 PM
Something you might find useful (maybe you do it already) is to go to a site that does what you want to do and 'view source'. That'll show you the source code of the page. Sometimes it's useful in figuring out how they did something, and sometimes it just makes your head hurt =P

Cheers-
Wozza