dsaba Posted May 24, 2007 Share Posted May 24, 2007 i am creating div elements and span elements in my page example div: <div id="uniqueid">some text</div> I need to be able to know the coordinates of a specific div, by referencing its unique id Kind of like searching for a div by its id, and then getting the coordinates of that div Is there some kind of formula or algorithim I can use to do this? Any help or thoughts would be much appreciated Quote Link to comment Share on other sites More sharing options...
nogray Posted May 25, 2007 Share Posted May 25, 2007 if you download the NoGray JS Library, there are 4 functions you can use getTopOffset() getLeftOffset() getHeight() getWidth() http://www.nogray.com/new_site/download.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.