Link to home
Start Free TrialLog in
Avatar of hpet
hpet

asked on

object position

Hi,

on my html document i have for example image that is positioned absolutly.
How can I later on read properties of that object (left,top,height).

hpet
Avatar of FRehman
FRehman

you can use alert that display the property
alert(document.form1.objectname.left)
Avatar of hpet

ASKER

FRehman,

this only returns object properties if it is positioned "relativly". If object is positioned "absolutly" it always returns 0,0. I read something that offset* functions should be used for absolutly positioned objects, but I can't make it work.

hpet
Avatar of hpet

ASKER

ok, i found the right way.
for absolutly positined objects you use offset* properties. my problem was bad control naming (two with same name).
offset* properties return position in parent..

hpet
ASKER CERTIFIED SOLUTION
Avatar of HolySpirit
HolySpirit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hpet

ASKER

right :)

thanks
hpet,
Thanks for your marks ...
-- Holy Spirit