how can i find and html element position(does really no body know?)
-
i wrote this message 3 days ago. but i have no answer. does really nobody know? if yes, so how so many menu is created? but i suppose that nobody read my message. so i repeate it. i want to simulate a menu with two div elemen. one for father node which its position is no absolute and placed in an table cell. another div is my menu body. i should find the position of first div (top, left) and then set the position of second div. i check style.top, style.left, all["div1"].style.top, all["div2"].style.left,... but i don't have any resault. how can i find the first div position in the browser window? thanks rastgar
prog
-
i wrote this message 3 days ago. but i have no answer. does really nobody know? if yes, so how so many menu is created? but i suppose that nobody read my message. so i repeate it. i want to simulate a menu with two div elemen. one for father node which its position is no absolute and placed in an table cell. another div is my menu body. i should find the position of first div (top, left) and then set the position of second div. i check style.top, style.left, all["div1"].style.top, all["div2"].style.left,... but i don't have any resault. how can i find the first div position in the browser window? thanks rastgar
prog
-
i wrote this message 3 days ago. but i have no answer. does really nobody know? if yes, so how so many menu is created? but i suppose that nobody read my message. so i repeate it. i want to simulate a menu with two div elemen. one for father node which its position is no absolute and placed in an table cell. another div is my menu body. i should find the position of first div (top, left) and then set the position of second div. i check style.top, style.left, all["div1"].style.top, all["div2"].style.left,... but i don't have any resault. how can i find the first div position in the browser window? thanks rastgar
prog
If an object isn't set to position:absolute, it doesn't have a top / left value, so you won't ever be able to get it - suggest going for position:absolute; left:0px; top:0px;
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox