#javascript-code-06-pos.js / js
// Find the left position of an element function posX(elem) { // Get the computed style and get the number out of the value return parseInt( getStyle( elem, “left” ) ); } // Find the top position of an element function posY(elem) { // Get the computed style and get the number out of the value return parseInt( getStyle( elem, “top” ) ); }
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.