Results 1 to 10 of 10

Thread: help.. skrollTo.. (?)

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

    Question help.. skrollTo.. (?)

    i found this part of code:
    <a href="#challenge" onclick="return skrollTo('challenge');">

    from: http://unite.blogcatalog.com/

    apparently it's a part of code to automatically scroll to particular part of the site when clicked..

    i tried to find tutorials for this kind of action but haven't got any luck..

    can u guys help?

  2. #2
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Couldn't you just use HTML anchors??

    Heres scroll spot:
    Code:
    ....
    <a name="something">spot to scroll to</a>
    ....
    Way to scroll:
    Code:
    ....
    <a href="#something">scroll to a spot</a>
    ....
    Or are you looking for JavaScript:

    Code:
    ....
    <a href="#" onClick="scrollTo(100,0);">scroll to a spot</a>
    ....
    Red objects need to be changed to correspond with eachother in the first example, and in num.2 you need to change them to x-postion and y-position to scroll to, for more info check here:
    http://www.w3schools.com/HTMLDOM/met_win_scrollto.asp.

    Tim

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

    Default

    That site uses mootools to achieve that effect, I think. I prefer jQuery. The plugin I use most often for these kinds of effects is jQuery.ScrollTo by Ariel Flesler

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

    ReadyToLearn (05-21-2008)

  5. #4
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Ahh. Scratch my last post, sorry misread and looked at site wrong. I thought he was referring to the scrolling itself. Sorry.
    Wow, I was just reading past posts and man I was a butthole sometimes to people. So if you ever got the end of it, then sorry...

  6. #5
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you TimFA, actually I WAS looking for that simple code.. but then I got tempted by the effect that Medyman suggested.

    Btw i'm a she not a he

  7. #6
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    That site uses mootools to achieve that effect, I think. I prefer jQuery. The plugin I use most often for these kinds of effects is jQuery.ScrollTo by Ariel Flesler
    OMG! I so want that effect! especially the easing:'elasout'. It's so cool.
    But it doesn't have a step by step tutorial.

    Where should i put what on my site's codes?

    Still need help here.

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

    Default

    Well, no it doesn't have step-by-step tutorials.

    But there is fairly good documentation here. And also linked on that page are some demos (from which you can glean specific usage).

    A little easier to work with for you might be serialScroll, which is a little easier to implement.

    You'll have to download the jQuery javascript library as well as the Ariel's plugins. Include them in your <head> section just like regular links to external javascript.

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

    ReadyToLearn (05-21-2008)

  10. #8
    Join Date
    Apr 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Download jQuery

    Download jQuery 1.2.5 (16kb, Minified and Gzipped) Great for production use.

    Download jQuery 1.2.5 (97kb, Uncompressed) Great for testing, learning and development.

    Download jQuery 1.2.5 (30kb, Packed) For those that can't Gzip their JavaScript.

    jQuery 1.2.4 Release Notes What was changed in the release.
    Which to download?

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

    Default

    It doesn't matter. I doubt you'll be going into the code and tinkering, so the minified and gzipped would be fine.

    If you do plan to view the source for whatever reason, go with the uncompressed.

  12. #10
    Join Date
    Mar 2007
    Location
    Tarboro, NC
    Posts
    290
    Thanks
    8
    Thanked 2 Times in 2 Posts

    Default

    Sorry for the he & she mistake ...
    Wow, I was just reading past posts and man I was a butthole sometimes to people. So if you ever got the end of it, then sorry...

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
  •