Results 1 to 5 of 5

Thread: Scrollable Content II

  1. #1
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Scrollable Content II

    Hi, and thanks for the free scripts.

    Could you please tell me what I need to change in the script so that there is not so much of a blank space at the bottom of the scroll page? The script is working fine except that I've got about 250 pixels of space at the bottom that I don't seem to be able to get rid of.

    Thanks again,

    J

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Do you have that problem with the demo page here on Dynamic Drive?

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    My site's currently in hiatus but I've uploaded a sample page here:

    Test Page

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think that is more content, different content, wider and taller content than the script author had in mind. Not to worry, a simple adjustment to the script will make it work more sensibly in this particular case. I hope that will satisfy you. Using other content may require a different adjustment to this value or a return to its default. Anyways, in the main script section for this script, in the function movedown(), find this line:
    Code:
    if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
    I just changed it to this:
    Code:
    if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+300))
    and it seemed to work fine. In case you are wondering, this figure represents the number of pixels to be trimmed off of the content's 'apparent height to the browser' when calculating the lower limit for scrolling.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh, thanks so much!

    I thought that number represented how much it was adding on, so I was reducing the figure (with no results).

    Thanks again!


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
  •