Posted By: Twider (Twider) on 'CZwww'
Title:     Zmena stylu Javascriptem
Date:      Tue Sep 25 11:40:31 2001


Potreboval bych poradit jak zmenit styl, pri udalosti na jiny, ale jen
jeden konkretni. 
Zkousel jsem 

 document.write("<style>#id { color : #ffffff; background: #000000 }
 </style>"); 
 
tohle sice browsery spapkaji, ale pri eventu zacnou "nacitat data".

Dalsi reseni jsem videl pres 

  document.write("<link rel=stylesheet href=...>");

ovsem tohle vyzaduje styly v externim souboru, coz je trochu pres ruku.
Vzdy potrebuju u 1 identifikatoru zmenit jen 2 vlastnosti, pricemz by se 
jednalo o jeden z cca. 10-20 identifikatoru.

Potreboval bych to elegantne vyresit bez strasny spousty externich stylu.

  Twider

Search the boards