SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member jojolina's Avatar
    Join Date
    Feb 2008
    Location
    amsterdam, Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery novice to ninja: why scrolling floating pane works strange in my case?

    hello forum ninjas!

    i tried to ad a bit of jquery to a pane in webpage under:

    http://jo-ann.stackedbits.com/www/over.php

    problem: the scrolling of the division does not stop at the bottom of the page, or, only chrome: at opening of the page, the division scrolls automatic to bottom of the page.

    the code is very little:

    $(window).scroll(function() {
    $('#scrollie')
    .stop()
    .animate({top: $(document).scrollTop()},'slow','easeOutQuad');
    });

    it works in the example page of the book. why not in my case?

    thanks for any help!

    jo-ann

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Minus some pixels that fits with your div like this.
    Code:
     .animate({top: $(document).scrollTop()-200},'slow','easeOutQuad');

  3. #3
    SitePoint Member jojolina's Avatar
    Join Date
    Feb 2008
    Location
    amsterdam, Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    thanks

    thanks, it changes things but not really the solution. but thanks anyway for help.


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
  •