ciao a tutti,
ho creato questo script che cambia lo stile di tutti i campi input di un form.
lo script funziona su FF (tranne le righe in rosso) ma non su IE... con IE mi cambia solo lo sfondo del primo tag input e gli altri non li vede neanche... come mai?codice:function anteprima(){ var modulo=document.getElementById('form1'); for(n=0; n<=(modulo.getElementsByTagName('INPUT').length-1); n++) { var campo=modulo.getElementsByTagName('INPUT')[n]; if (campo.type!="button") { campo.style.backgroundColor="transparent"; campo.style.top=campo.style.top-2; campo.style.left=campo.style.left+3; campo.style.border="0px solid #000"; } } }
scusate ma sono nuovo di javascript^^
Grazie mille a tutti

Rispondi quotando
