/    Sign up×
Community /Pin to ProfileBookmark

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!

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@pyroJul 30.2003 — 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>
Copy linkTweet thisAlerts:
@WozzaJul 31.2003 — 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
×

Success!

Help @lunitari_8100 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...