By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,480 Members | 1,766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,480 IT Pros & Developers. It's quick & easy.

getting X, Y coordinates of objects with javascript for netscape 8

P: n/a
Hey,

is there anyway to get the X and Y cooridnations of an object in
javascript in Netscape 8?

the object is not absolutely positioned but with the flow of the page.

thanks

Oct 13 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
abuhijleh wrote:
Hey,

is there anyway to get the X and Y cooridnations of an object in
javascript in Netscape 8?

the object is not absolutely positioned but with the flow of the page.

thanks

<URL:http://www.quirksmode.org/js/findpos.html>
--
Rob
Oct 13 '05 #2

P: n/a
RobG wrote:
<URL:http://www.quirksmode.org/js/findpos.html>


Although this script works in the simplest situations, there are some common
conditions where it fails.
My approach takes into account most of those conditions and will give more
consistant results:

http://www.mattkruse.com/javascript/...sitionTest.php

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Oct 13 '05 #3

P: n/a
Thanks guys, I wanted something very simple and RobG thing just did it
:).

Oct 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.