[Javascript] Fwd: Positionning scrollbar for <DIV> elements

Peter-Paul Koch gassinaumasis at hotmail.com
Tue May 22 04:08:14 CDT 2001


>Is it possible to position the offsets for them as it is for
>the window object using function scrollTo(x,y) ?

Don't know, why don't you try it and test it in all browsers? Make a DIV 
with lots of content and a style sheet like

DIV {width: 100px;
  height: 100px;
  overflow: auto;}

The last declaration makes sure that the DIV gets scrollbars when the 
content is too large to fit in the 100x100 area.

When you have the DIV with scrollbars, try the scrollTo() method.

ppk
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





More information about the Javascript mailing list