function CreaClassPerStiliPersonali() { //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // =========== inizio creazione style ============== // =========== creato da Sansovini Ivo ============= //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ var persCLASSstyle = document.createElement('style'); persCLASSstyle.type = 'text/css'; persCLASSstyle.innerHTML = "a.pers1href {color: blue; background-color:#DCDCDC; font-weight: bold; padding: 4px 8px;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + "a.pers1href:hover {font-style: italic; font-weight: normal; color: red; background-color:LightCyan;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + ".pers1href:focus {font-style: normal; font-weight: normal; color: red; background-color:LightCyan;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + ".pers1str {color: #4169E1; font-weight: bold;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + ".pers2str {color: #4169E1; font-weight: normal;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + ".pers3str {color: green; font-style: italic; font-weight: normal; font-size: 70%;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + "input.pers1puls {color: red; height: 2em;}"; persCLASSstyle.innerHTML = persCLASSstyle.innerHTML + "input.pers1puls:hover {text-decoration: underline; font-weight: normal; font-style: italic; background-color:LightCyan;}"; document.getElementsByTagName('body')[0].appendChild(persCLASSstyle); //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // =========== fine creazione style ================ // =========== creato da Sansovini Ivo ============= //^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ } CreaClassPerStiliPersonali();