home / experts / javascript / column32 |
|
There are many ways to position a scroll box. You can position it in absolute coordinates, but the desired location may change because of an ad put at the top of the page, for example. In this column we use the GIF method. We place a dummy GIF wherever we want in our page:
We then compute the coordinates of this GIF in our scrolling box code. We use the
where
These functions are needed for Internet Explorer in cases where the |
Produced by Yehuda Shiran and Tomer Shiran
Created: December 21, 1998
Revised: December 21, 1998
URL: http://www.webreference.com/js/column32/position.html