Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] scrolling frame/window


  • From: javascript@xxxxxxxxxx (Dan Costea)
  • Subject: [Javascript] scrolling frame/window
  • Date: Wed, 22 May 2002 17:15:48 -0700

The "window" object has 3 methods that might interest you:
window.scroll(iX, iY)
Parameters

        iX Required. Integer that specifies the horizontal scroll offset, in
pixels.
        iY Required. Integer that specifies the vertical scroll offset, in
pixels.

-----------------------------------------
window.scrollBy(iX, iY)
Parameters

        iX Required. Integer that specifies the horizontal scroll offset, in
pixels. Positive values scroll the window right, and negative values scroll
it left.
        iY Required. Integer that specifies the vertical scroll offset, in
pixels. Positive values scroll the window down, and negative values scroll
it up.

-----------------------------------------
window.scrollTo(iX, iY)
Parameters

        iX Required. Integer that specifies the horizontal scroll offset, in
pixels.
        iY Required. Integer that specifies the vertical scroll offset, in
pixels.



Dan.

----- Original Message -----
From: "Andrew Dunn" <andrew@xxxxxxxxxx>
To: <javascript@xxxxxxxxxx>
Sent: Wednesday, May 22, 2002 1:01 AM
Subject: [Javascript] scrolling frame/window


> Hi,
> I think you can scroll a frame with javascript but i can't remember how?
Can
> anyone help out?
>
> Thanks.
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript