Originariamente inviato da H5N1_Aviaria
Non capisco perchè per assegnare l'altezza utilizzi cssText e non direttamente height!
Perchè se devi assegnare più proprietà allo stesso, la notazione usuale diventa ridondante. Spesso, poi, è più vantaggioso definire una classe con le nuove proprietà e assegnare dinamicamente la classe all'elemento.


Ad ogni modo se il browser che presenta il problema è Opera 8 cssText non funziona

...
The second approach is to define a new style attribute for the element, instead of assigning styles one by one. Most often this is suited to dynamic chages such as animations, where the new styles cannot be known in advance. This is done using either the cssText property of the style object, or by using setAttribute. Internet Explorer does not allow the second version, and needs the first. Some older browsers, including Opera 8, need the second approach, and do not understand the first...
tratto da http://dev.opera.com/articles/view/e...script/?page=3

Nella pagina c'è anche il workaround da utilizzare per questo specifico problema