[PLUG] Controlling the scrollbars of a browser?
Brent Rieck
bsr at spek.org
Thu Oct 2 23:39:01 UTC 2003
Matt Alexander wrote:
> Any ideas? I'm not too concerned about which language would be needed to
> accomplish this, as long as it can work in a web browser. I've been using
> ImageMagick to dynamically crop the image to the location I want and then
> display that new image, but that's painfully slow, especially if the user
> wants to move through the menu items at any reasonable speed.
Javascript:
window.scrollTo() - for horizontal scrolling
window.scrollBy() - for vertical
I don't have a list of browsers that'll work in, but I believe the last
few version of IE and Mozilla/Netscape support it, though probably not
in IE for the Mac (because it IE for the Mac sucks).
--Brent
More information about the PLUG
mailing list