function ImplementaCSSpers1(NewCSS) { // -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- // script per aggiungere styli (Class) personali sviluppato da Ivo Sansovini // formato da usare: ImplementaCSSpers1("CSS della nuova Classe"); // richiamare la funzione (se serve anche pių volte) passando una o pių classi in formato testo direttamente o creando prima una variabile // il carattere di continuazione su pių righe č (in javascript) "\" // si considera presente il tag "BODY" // esempio: // ImplementaCSSpers1(".pers2href:focus { \ // font-style: italic; \ // font-weight: bold; \ // color: violet; \ // background-color:LightCyan; \ // }"); // --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- var persCLASSstyle = document.getElementById("CSSpers1"); if (persCLASSstyle == null) { var persCLASSstyle = document.createElement('style'); persCLASSstyle.type = 'text/css'; persCLASSstyle.id = 'CSSpers1'; document.getElementsByTagName('body')[0].appendChild(persCLASSstyle); } persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + NewCSS; }