Results 1 to 4 of 4

Thread: jQuery Scroll to Top Control for custom links

  1. #1
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default jQuery Scroll to Top Control for custom links

    1) Script Title:

    jQuery Scroll to Top Control v1.1

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamicindex3/scrolltop.htm

    3) Describe problem:

    This is probably the best scroll to top script. Is is possible to use this script for custom links instead of scroll to top function?

    Custom links like http://... or for jquery lightbox (photos, on-page divs, iframe etc). This means that this script will probably will have to use classes like class="lightbox" etc.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you can call the function:

    Code:
    scrolltotop.scrollup()
    to dynamically scroll the page up. The trick then for you is to attach this function to the desired control on your page, such as inside a lightbox, so clicking inside it executes the function.
    DD Admin

  3. #3
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I don't want to call scroll to top but to use existing features like showing after page scrolling starts but with new click functions.

    When user clicks on icon (or new image) he will go on 3rd link or open some lightbox, not scroll to top.

  4. #4
    Join Date
    Feb 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi!

    Im trying to find a way to make this scroll to top jQuery plugin work on the X axis. Right now I can get him jump to the point, but not to slide.
    Can you help me?

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
  •