-
looking for a code, please help
hey everyone!
I lost a code of which i believe i found on this site. Ive been searching for at least an hour on and off dynamic drive to find this code, if you know where it is, or can point me in the right direction, that would be great.
The code was one that had a series of links on the top, if you clicked on one, it would smoothly scroll down the page to the paragraph. Then, you could click on a "return to top" button, where it would scroll back up to the top of the page. What was really neat about this code was that all of the paragraphs were a light beige colour, and after viewing a paragraph it will change to a darker colour.
I know this is a very vague description, but any help would be most appreciated.
Thanks!
-
-
I haven't seen that kind of script on Dynamic Drive. That doesn't mean it doesn't exist though.
But it's quite common functionality that's found elsewhere on the web.
Is this what you're looking for? You could also look into jQuery and the scrollTo plugin.
JavaScript does have a native scrollTo() method, but the results aren't as smooth as those mentioned above.
-
The Following User Says Thank You to Medyman For This Useful Post:
-
HTML Code - Help is On The Way!
Well, actually there is a much more simpler way of scrolling to the top, bottom, or just some out of the way paragraph just by clicking a link. I will leave a small code piece just to give you an idea. Quite in fact, though, it does not involve JavaScript, but plain HTML. Hope it helps! Here it is:
<html>
<head>
<title>NONE
</title>
</head>
<body>
<a href="#some_name">Go to P1</a>
<a name="some_name">P1</a>
YADAYADAYADAYADAYADA!!!
</body>
</html>
I am a little bit fuzzy on HTML concepts, but this should help. Let me know if it does!
Magicyte
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks