Ciao a tutti!
Vorrei sapere quali sono le correzioni (o aggiunte) che devo fare a questo codice javascript per farlo funzionare su FF.
Il codice è quello di questa pagina, solo che funziona solo con IE...Codice HTML:<script language="Javascript" type="text/javascript"> function aiuto(){ window.open("help.php",'aiuto','width=500,height=500') } function antprm_templ(){ window.open("template.htm",'templates','width=520,height=500') } function antprm_font(){ var tt=document.modulo.testo.value if(tt=="Inserisci il testo"){ window.open("font.php?testo=default",'font','width=520,height=500') }else{ window.open("font.php?testo="+document.modulo.testo.value+"",'font','width=520,height=500') }} function riga1(){ secondariga.style.visibility='hidden' refresh() } function riga2(){ secondariga.style.visibility='visible' refresh() } function refresh(){ var testo=document.modulo.testo.value var template=document.modulo.template.options[document.modulo.template.selectedIndex].value var font=document.modulo.qualefont.options[document.modulo.qualefont.selectedIndex].value var dimensione=document.modulo.dimensione.options[document.modulo.dimensione.selectedIndex].value var intx=document.modulo.intx.options[document.modulo.intx.selectedIndex].value var inty=document.modulo.inty.options[document.modulo.inty.selectedIndex].value var angolazione=document.modulo.angolazione.value var colore=document.modulo.colore.options[document.modulo.colore.selectedIndex].value if(secondariga.style.visibility=="visible"){ var testo2=document.modulo.testo2.value var font2=document.modulo.qualefont2.options[document.modulo.qualefont2.selectedIndex].value var dimensione2=document.modulo.dimensione2.options[document.modulo.dimensione2.selectedIndex].value var intx2=document.modulo.intx2.options[document.modulo.intx2.selectedIndex].value var inty2=document.modulo.inty2.options[document.modulo.inty2.selectedIndex].value var angolazione2=document.modulo.angolazione2.value var colore2=document.modulo.colore2.options[document.modulo.colore2.selectedIndex].value preview.location.href("gd_create.php?righe=2&testo="+testo+"&template="+template+"&font="+font+"&dimensione="+dimensione+"&intx="+intx+"&inty="+inty+"&ang="+angolazione+"&colore="+colore+"&testo2="+testo2+"&font2="+font2+"&dimensione2="+dimensione2+"&intx2="+intx2+"&inty2="+inty2+"&ang2="+angolazione2+"&colore2="+colore2+"") }else{ preview.location.href("gd_create.php?righe=1&testo="+testo+"&template="+template+"&font="+font+"&dimensione="+dimensione+"&intx="+intx+"&inty="+inty+"&ang="+angolazione+"&colore="+colore+"") }} </script>
Grazie!

LinkBack URL
About LinkBacks

