Results 1 to 3 of 3

Thread: Is there a way to control (I)Frames scrollbar from JS/DHTML

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

    Question Is there a way to control (I)Frames scrollbar from JS/DHTML

    Hi,


    I'd like to know is it is possible to control (i)frame scrollbar position using JS/DHTML. This way I could make a custom scrollbar (iirc there's no way to define custom scrollbars, except by changing colors)...

    If so, how ?

    Thanks in advance,
    Leo.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes; the method you're looking for is frame.scrollTo(xPos, yPos).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Default

    Quote Originally Posted by Twey
    Yes; the method you're looking for is frame.scrollTo(xPos, yPos).
    Thanks !

    Btw, is there a way to know the size of the data containing within a frame ?
    (ie: not the size of the frame itself)

    Leo.

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
  •