Richiamando questa funzione usando firefox non avviene nulla, nè un errore nè alcun inserimento...codice:function tag (codice) { var tarea = document.risposta.scritto; if(codice=='img'){ var imgurl=prompt('bla bla','http://www.tuo_sito.it/immagine.jpg'); if(imgurl!=null && imgurl!=''){ tarea.value+='[img src='+imgurl+']'; } }else{ tarea.focus(); var selez=document.selection; var creorang=selez.createRange(); creorang.collapse; var testosel=creorang.text; if(creorang.text==''){ switch(codice) { case 'b':tarea.value+=''; break; case 'i':tarea.value+=''; break; case 'u':tarea.value+=''; break; case 's':tarea.value+='[strike][/strike]'; break; } }else{ switch(codice) { case 'b':testosel=''+creorang.text+''; break; case 'i':testosel=''+creorang.text+''; break; case 'u':testosel=''+creorang.text+''; break; case 's':testosel='[strike]'+creorang.text+'[/strike]'; break; } creorang.text=testosel; } } tarea.focus(); }
Chi mi sa dare delucidazioni?
Tnx come sempre.
Ciaooooo!!!!!!

Rispondi quotando