[Javascript] Positioning in IE
Peter Brunone
peter at brunone.com
Mon Jul 26 09:47:22 CDT 2004
This isn't exactly on topic, but what constitutes "humping"
non-standard properties? Do you have to put your browser in promiscuous
mode?
-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of Hakan Magnusson
(Backbase)
You are still humping IE-specific, non-standard properties.
> I just added my $0.02 in case somebody wanted to do it the RIGHT way,
> and don't want to split their code up more than necessary.
Feel free to use proprietary code with no future compatibility.
Regards,
H
Paul Cowan wrote:
> What about:
>
> document.getElementById('glava').style.posLeft = '500px';
>
> dagda1 at hotmail.com
>
>> From: "Peter Brunone" <peter at brunone.com>
>>
>> Just for the record, Hakan's is the most correct answer,
>> according to the DOM. Also, you would never assign units to the
>> pixelLeft property since it takes an integer and assumes pixels...
>> And if you assign a property with units to the style.left property,
>> you'd need to feed it in as a string.
>>
>> Cheers,
>>
>> Peter
>>
More information about the Javascript
mailing list