Ciao, qualcuno mi saprebbe indicare che funzione usare al posto di getElementById() al fine di far funzionare la mia funzioncina anche su Mozilla Firefox altre che su IE?
La funzione è questa:
Spero che qualcuno mi possa aiutare.codice:<script language="javascript"> function show(id) { if(id=="anagrafe") document.getElementById(id).style.height='256'; if(id=="figuraprof") document.getElementById(id).style.height='100'; if(id=="conoscenze") document.getElementById(id).style.height='1230'; if(id=="formazione") document.getElementById(id).style.height='440'; document.getElementById(id).style.visibility='visible'; } function hide(id) { document.getElementById(id).style.height='1'; document.getElementById(id).style.visibility='hidden'; } </script>
Grazie.

Rispondi quotando
