Scroll To Paragraph |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Client Side Scripting HTML and CSS |
||
![]() |
Scroll To Paragraph |
||
Oct 29 2007, 11:21 PM
Post
#1
|
|
![]() Super Duper Ninja ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 453 Joined: 20-September 07 From: Houston, TX Member No.: 290 |
I'm not sure whether or not this is PHP, AJAX, or HTML, how do you create buttons that direct users to a specific paragraph or section in your HTML page? I've googled it, but haven't found anything yet.
Just like the technology they used in Wikipedia: Link to normal page: http://en.wikipedia.org/wiki/Characters_of_StarCraft Link to paragraph: http://en.wikipedia.org/wiki/Characters_of_StarCraft#Zeratul I've tried to analyze it...perhaps the # tells the page to scroll to a div id? |
|
|
Oct 29 2007, 11:27 PM
Post
#2
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderators Posts: 1,102 Joined: 2-June 07 From: United States Member No.: 14 |
QUOTE The Anchor Tag and the Name Attribute The name attribute is used to create a named anchor. When using named anchors we can create links that can jump directly into a specific section on a page, instead of letting the user scroll around to find what he/she is looking for. Below is the syntax of a named anchor: CODE <a name="label">Text to be displayed</a> The name attribute is used to create a named anchor. The name of the anchor can be any text you care to use. The line below defines a named anchor: CODE <a name="tips">Useful Tips Section</a> You should notice that a named anchor is not displayed in a special way. To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this: CODE <a href="http://www.w3schools.com/html_links.asp#tips"> Jump to the Useful Tips Section</a> A hyperlink to the Useful Tips Section from WITHIN the file "html_links.asp" will look like this: CODE <a href="#tips">Jump to the Useful Tips Section</a> From: http://www.w3schools.com/html/html_links.asp |
|
|
Oct 29 2007, 11:31 PM
Post
#3
|
|
![]() Super Duper Ninja ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 453 Joined: 20-September 07 From: Houston, TX Member No.: 290 |
Thanks for the fast reply, I'd always wondered how they did that. Now I'm wondering how they do it at
http://www.newgrounds.com/lit/faq Most likely AJAX... |
|
|
Oct 29 2007, 11:36 PM
Post
#4
|
|
![]() Outrageously Uber Ninja ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrators Posts: 2,831 Joined: 11-March 07 From: UK Member No.: 9 |
They use prototype for that bit : http://prototypejs.org
|
|
|
![]() |
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 18th June 2013 - 11:24 PM |