Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Northern California
    Posts
    169
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using scrollBy(x,y)

    I have use scrollBy() before on main window and even popup windows! But can not seem to get it to work with a frame is this not possible! If so is there no other way to scroll a frame!

  • #2
    Regular Coder
    Join Date
    Apr 2003
    Location
    Canada, Ontario, Mississauga
    Posts
    312
    Thanks
    0
    Thanked 0 Times in 0 Posts
    what does scrollBy() do?

    I don't understand what you really asking for,

    if you want to scroll an entire fram, try put fram inside a fram..

    can you explain a little mroe?

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    devguru
    scrollBy Method
    This method is used to scroll the window's content area by the specified number of pixels. This is only useful when there are areas of the document that cannot be seen within the window's current viewing area, and the visible property of the window's scrollbar must be set to true for this method to work.

    Syntax: window.scrollBy(horizPixels, vertPixels)
    scriptkeeper, how are you using your code, try something like this
    window.frames["framename"].scrollBy(horizPixels, vertPixels);
    Last edited by chrismiceli; 06-14-2003 at 07:49 AM.

  • #4
    New Coder
    Join Date
    Oct 2002
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm thinking you just dont have any content on the page, hehehe...

    Try a bunch of br's


    Unless ur tring to do it crossframe theres no reason it shouldn't work.

  • #5
    New Coder
    Join Date
    Jul 2003
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I cannot think what's wrong either, but if you're trying to scroll to a different section of your page, an alternative would be to place a bookmark on where you want to scroll to.

    -------------------
    <a name="books_section">BOOKS</a>

    ...
    -------------------

    You can then use the link to take you to the books section.
    <a href="#books_section" target="FRAME_NAME"></a>

    Hope I have helped.
    Last edited by wickford; 07-04-2003 at 11:04 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •