Results 1 to 3 of 3

Thread: looking for a code, please help

  1. #1
    Join Date
    Jun 2008
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation 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!

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

  3. The Following User Says Thank You to Medyman For This Useful Post:

    kaymarie (06-19-2008)

  4. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Exclamation 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •