[Javascript] Positioning in IE

Hakan Magnusson (Backbase) hakan at backbase.com
Mon Jul 26 09:50:38 CDT 2004


<!DOCTYPE html PRIVATE "-//M$//DTD SlutDOM 1.0//EN">

Peter Brunone wrote:
> 	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
>>>
> 
> 
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 
> 



More information about the Javascript mailing list