...

View Full Version : Need understanding with "getelementbyid().offsetTop"



mbay
09-28-2004, 05:12 AM
Hello Everyone!!!

I was looking on the internet for better understanding of the following:

[document.getElementById(hello).offsetTop]

What is the purpose of "OffsetTop"?

Anyone with any info or links to help are welcomed.


Thank you in advance,

mbay

jamescover
09-28-2004, 06:38 AM
http://www.mozilla.org/docs/dom/domref/dom_el_ref21.html#1028066


-james

mbay
09-28-2004, 06:40 PM
Hi James Cover!!!!

thanks for your reply and the link - they are greatly appreciated.

I was studying the link you displayed.

If I did not want to have offsetTop, is there a way to remove it or have the value to "0"? I tried removing the word "offsetTop" but then the javascript code no longer functioned.

Thanks for any help and advise in advance,

mbay

canadianjameson
09-28-2004, 09:33 PM
what exactly are you trying to do?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum