Results 1 to 3 of 3

Thread: scrollable content aint content to scroll

  1. #1
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default scrollable content aint content to scroll

    1) Script Title:
    Scrollable content II

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

    3) Describe problem:

    i can always get this code working until i actually embed it somewhere...

    check out:
    http://www.haputnam.com/test/sample.html

  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

    There could be other problems, but generally elements with no display have no offset dimensions. The scroller uses offsetHeight while loading to determine what numbers to use when setting the limits of scrolling, if there is no offsetHeight, this will not happen.

    If you add (highlighted):

    Code:
    <input type="button" value="Center" 
    onclick="popup_show('popup', 'popup_drag', 'popup_exit', 'screen-center', 0, 0); 
    contentheight=crossobj.offsetHeight">
    That should take care of that.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    moscarda (02-02-2009)

  4. #3
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    brilliant, cheers

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
  •