[Fwd: [Javascript] moving layers in NN 6]
Manuel Socarras Reyes
msocarras at terra.es
Mon Oct 21 16:08:52 CDT 2002
besides, i forgot to mention, any comand after
document.getElementById("idOfYourElement").offsetLeft
doesn't execute (alert, location.href, ...) ???
--
Saludos,
Manuel Socarrás Reyes <msocarras at terra.es>
Barcelona. Spain
Manuel Socarras Reyes wrote:
> Harry Love wrote:
>
>> ...
>> Manuel,
>> For NN6+, Mozilla, IE5.5+, try
>> document.getElementById("idOfYourElement").offsetLeft
>
>
> i tried it but the layer doesn't move!
>
> document.getElementById("Layer1").offsetLeft -= 10;
>
> even though
>
> alert(document.getElementById("Layer1").offsetLeft);
>
> returns the correct layer's initial position
>
> ============================
>
> Muchacho, Laurent wrote:
>
>> Hi Manuel
>> This is pretty easy to do.
>> You must use
>> NS6 & IE 5 and over document.getElementById('layer1').style.left +=
>> 10
>>
> this doesn't works neither, logically i think because
>
> alert(document.getElementById("Layer1").style.left);
>
> returns: 50px (like in IE where you have to use pixelLeft instead)
>
>
> W'98 - NN 6.1
> MacOS 9.2.2 - NN 6.2.1 & NN 7.0
>
> any idea? i'm really lost!
>
More information about the Javascript
mailing list