chriz
07-08-2004, 03:26 AM
Hi all!, i wanted to take my javascript skills to the next stage, and i was wondering if anybody could help me learn the following types of code : How to use the X and Y co-ordinates of any ID object
Every book i look in dosn't describe this properly.
However i do use the style="pos.......;top:400;left:100" tags but when i use javascript to change the 'position' of this object it dosn't work
I do try using these codes:
document.all.id1.style.top == 10;
and
document.all.id1.style.pixelLeft == 10;
but they don't work in my IE
Thanx a lot guys!
:)
Every book i look in dosn't describe this properly.
However i do use the style="pos.......;top:400;left:100" tags but when i use javascript to change the 'position' of this object it dosn't work
I do try using these codes:
document.all.id1.style.top == 10;
and
document.all.id1.style.pixelLeft == 10;
but they don't work in my IE
Thanx a lot guys!
:)