...ma non mi funge...
Ora la mia pag. htm è stata così modificata:
pero' mi restituisce errore...non so cosa devo fare...mi potete ancora aiutare x favore?codice:<html> <head> <title>Prova per cambiare carattere</title> <style type=text/css>@import url("cambiacarattere.css"); </style> <script type="text/javascript" language="JavaScript"> <!-- ok = (document.styleSheets) ? 1 : 0; IE = ((ind1 = navigator.appVersion.indexOf("MSIE")) > -1) ? 1 : 0; IE4 = (IE && document.all) ? 1:0; NN = (navigator.appName.indexOf("Netscape")>-1) ? 1 : 0; NN4 = (NN && document.layers) ? 1 : 0; NN6 = (NN && document.getElementById) ? 1:0; if(ok) { if(IE4) stile = document.styleSheets[0].rules if(NN6) stile = document.styleSheets[0].cssRules } function aumenta() { if(ok) { var size = stile[0].style.fontSize.substring(0,2) var dimFont = parseInt(size,10) dimFont += 2; { if (dimFont > 16) dimFont = 16; } stile[0].style.fontSize = dimFont + 'px'; } else alert("l'oggetto styleSheets\nNON\nè supportato") } function cambiaFont() { if (stile[0].style.fontFamily == "Verdana, Arial, Helvetica, sans-serif") stile[0].style.fontFamily = "georgia,times,times new roman,serif"; else stile[0].style.fontFamily = "Verdana, Arial, Helvetica, sans-serif"; } function copia(ff) { document.getElementById('nome').innerHTML = ff.nome.value + " "; } function verdana10(ff) { document.getElementById('nome').className = 'nome_verdana10'; return false; } function times10(ff) { document.getElementById('nome').className = 'nome_times10'; return false; } function verdana12(ff) { document.getElementById('nome').className = 'nome_verdana12'; return false; } function times12(ff) { document.getElementById('nome').className = 'nome_times12'; return false; } function verdana14(ff) { document.getElementById('nome').className = 'nome_verdana14'; return false; } function times14(ff) { document.getElementById('nome').className = 'nome_times14'; return false; } </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="nome" id="nome">Testo inserito </div> <form><table width="30%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td> <input name="nome" onblur="copia(this.form);" size="45" maxlength="40" /> </td> </tr> </table> </form> </p> Aumenta - <a href="#" onclick="cambiaFont()">Cambia font</a></p> Verdana 10pt - Times 10pt</p> Verdana 12pt - Times 12pt</p> Verdana 14pt - Times 14pt</p> </body> </html>
Grazie!

 
			
			 Ky
Ky 
					
					
					
						 Rispondi quotando
  Rispondi quotando