Hi
I have got a style sheet that defines where a layer appears on the page. i want to be able to get the top and the left positions of this element using javascript. The code below gives me the top position when i define the position in the document, but when i move that position into the style sheet the code returns nothing. is there any way that i can picl up this position from the style sheet, or will i have to define the position in the document.
alert(document.all['line'].style.top);
I have got a style sheet that defines where a layer appears on the page. i want to be able to get the top and the left positions of this element using javascript. The code below gives me the top position when i define the position in the document, but when i move that position into the style sheet the code returns nothing. is there any way that i can picl up this position from the style sheet, or will i have to define the position in the document.
alert(document.all['line'].style.top);