Results 1 to 5 of 5

Thread: Scrollable content script II

  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Scrollable content script II

    There is always about 2-3 inches of empty space at the bottom of the pages that I'm creating with this scrollable textbox... how do I get rid of this?

    Here is the site I'm doing:

    http://www.hipmommiesphatbabies.ca/signs.html

    Can anyone please tell me how to reduce that empty space to be maybe 1/4 of an inch or less?

  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

    Code:
    function movedown(){
    if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
    crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
    else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
    crossobj.top-=speed
    movedownvar=setTimeout("movedown()",20)
    }
    Play with those 100's. The first is really the only one that counts but, once you have it adjusted to your liking, duplicate it for the second one (the first is for modern browsers, the second for old NS4). Contrary to what one might think, actually increasing the number is what I think you need to do, try 150.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Where do I put this?

    Where do I put this code and how do I call this function in the scrollable content script II code?

  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

    That code is already in the script exactly as shown in my post. All you need do is find it and change the 100's to 150's. See if that works, if not, probably increasing it more or less or decreasing it will do the trick.
    - John
    ________________________

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

  5. #5
    Join Date
    Feb 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thank You

    Thank you so much... I turned those 2 numbers to 300 and it was perfect! Who would have thought a larger number would make that work! hahaha

    Thank you thank you thank you!

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
  •