Hey Matthew,
I have been working on a widget that reports back
the visible screen coordinates. It has several
features, some still a little buggy, but since you
asked, I will provide it here. Maybe get a little
feedback on its usage and features. I am also listing
a section from it that gives the left top bottom and
right screen positions, even after scrolling.
this.vlx = (is.ns4)? parseInt(window.pageXOffset) :
parseInt(document.body.scrollLeft);
this.vty = (is.ns4)? parseInt(window.pageYOffset) :
parseInt(document.body.scrollTop);
this.vrx = (is.ns4)? this.vlx +
parseInt(window.innerWidth) : this.vlx +
parseInt(document.body.clientWidth)+this.scadd;
this.vby = (is.ns4)? this.vty +
parseInt(window.innerHeight) : this.vty +
parseInt(document.body.clientHeight)+this.scadd;
Example of this in use:
http://www.merlinsworld.net/dynapi_ri_dcexamples/dc_sposit_exmpl.htm
Remember, this is still in development, so it is a
little buggy.
Widget goals:
provide the visible screen coordinates
provide a means to scroll items on the page
(going to add thread to this to "tame" the
scrolling in ns4)
provide coordinates of the center of the screen
provide a way to force the document size and
scrollbars for ns4
Anyone think of some more sizing utility to put in to
this?
Cheers,
Dave C. "You Changed What?!?"
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
dcutil_scrposit.zip