Results 1 to 2 of 2

Thread: Scroll an iframe from outside

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default Scroll an iframe from outside

    1) CODE TITLE: Scroll an iframe from outside

    2) AUTHOR NAME: Arie Molendijk

    3) DESCRIPTION:
    A pair of scripts - one script in an iframe, the other one in the main document - allowing us to scroll the iframe 'from outside' using buttons for vertical and horizontal customized scrolling.
    The buttons only show when needed, just like ordinary scroll bars.
    Different scroll speeds depending on whether the buttons have mouseover, click or double click.
    This is a very loose adaptation of a script seen at http://www.dynamicdrive.com/dynamici...gescroller.htm (and I think jscheuer did something similar - less complete - in the same vein, but I don't remember where).

    4) URL TO CODE:
    http://www.let.rug.nl/molendyk/ifram..._scroller.html

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I forgot to mention that you must have html, body {overflow: hidden} in the iframe's document.
    ===
    Arie.

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
  •