[Javascript] Thoughts on building form elements/similar divs
Glenn E. Lanier, II
glenn_lanier at netzero.net
Fri Jul 8 13:45:00 CDT 2005
> From: Paul Novitski
> Sent: Wednesday, July 06, 2005 7:12 PM
> <div id="lists">
> <input type="text" id="text1" />
> <input type="text" id="text2" />
> ...
> </div>
> - For each "input" tagName within container "lists":
> - Set style.visibility to hidden.
> - Set the onfocus function.
> - Perhaps record left & top coordinates in an array?
So, how can I get the top and left coordinates of a single item?
document.getElementById('text1').style.top returns blank for me, even when I
define a style and explicitly set top to a value.
> Looks to me like two or three hours of coding & testing.
It's never that simple!
--G
More information about the Javascript
mailing list