Results 1 to 9 of 9

Thread: scrollable content script

  1. #1
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default scrollable content script

    Does anyone know how to remove the bottom scroll bar from an iframe. All of my content is sized to fit the window horizontally so all I would need would be the vertical scrolling.

    I'm currently using the "scrollable content" script from the dynamic content section of scripts.

    Thanks for any advise

  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

    If your content is truly narrow enough to fit the horizontal dimensions (this can be tricky because default page and other margins and/or padding must be taken into account), all that is required is that your iframe's scrolling attribute be set to 'auto':

    HTML Code:
    <iframe src="whatever.htm" scrolling="auto"></iframe>
    - John
    ________________________

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

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

    Default

    Thanks for the reply,
    The script in question (scrollable content) doesn't appear to have the "scrolling" variable so I'm not sure where to go from here.

    thanks again,

  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

    It is not a variable. It is an attribute of the iframe tag, like width or height.

    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

  5. #5
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry about that... started putting the URL in twice and brain farted twice.


    Script: Scrollable Content
    http://www.dynamicdrive.com/dynamicindex11/scrollc.htm

    In any event the scrolling "parameter/tag" doesn't appear to be used in the script (not that I saw, anyways).

    I have removed the code at the bottom of the script between the <span></span> tags to resolve a different issue.

    Thanks again

  6. #6
    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 script doesn't use an iframe, here is where the scrollbar behavior is set:

    Code:
    <div id="scroll3" style="width:170px;height:150px;background-color:lightyellow;overflow:scroll">
    Change it to this:

    Code:
    <div id="scroll3" style="width:170px;height:150px;background-color:lightyellow;overflow:auto">
    and as long as your content is narrow enough and/or can wrap to narrow enough dimensions to fit the division's width, there will be no horizontal scrollbar.
    - John
    ________________________

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

  7. #7
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks,
    I'll give it a go!!


    Thanks again,

  8. #8
    Join Date
    Mar 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks that did the trick!!

  9. #9
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Excellent, I was looking for this ability too, thanks!!!!

    I won't try this until tonight, but how hard would it be to mix this script with the Tabbed Content script?

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
  •