🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.javascript
2 messages
2 total messages Started by adamschodowy Fri, 10 Dec 2010 15:08
problem z style.marginLeft pod IE
#50432
Author: adamschodowy
Date: Fri, 10 Dec 2010 15:08
11 lines
1282 bytes
pod FF i innych działa mi
objtomove.style.marginLeft=xleft+movestep+'px'
pod IE wywala:
Nieprawidłowy argument.
Ale
objtomove.style.marginLeft='222px'
pod IE działa.
Jeżeli składam wartośc do kupy w osobnej zmienne a potem ją podaję, np
var pixl=xleft+movestep+'px'
objtomove.style.marginLeft=pixl
też mi wywala błąd, ten sam.
Re: problem z style.marginLeft pod IE
#50433
Author: Peter May
Date: Fri, 10 Dec 2010 15:25
20 lines
1459 bytes
W dniu 2010-12-10 16:08, adamschodowy@gazeta.pl pisze:
> pod FF i innych działa mi
> objtomove.style.marginLeft=xleft+movestep+'px'
> pod IE wywala:
> Nieprawidłowy argument.
> Ale
> objtomove.style.marginLeft='222px'
> pod IE działa.
> Jeżeli składam wartośc do kupy w osobnej zmienne a potem ją podaję, np
> var pixl=xleft+movestep+'px'
> objtomove.style.marginLeft=pixl
> też mi wywala błąd, ten sam.

alert(typeof xleft +" | "+ typeof movestep);
objtomove.style.marginLeft=xleft+movestep+'px';

Podaj rezultat powyższego w IE.

-- 
Peter
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads