Perfavore!
Guardate qui:
https://bugzilla.mozilla.org/show_bug.cgi?id=341861
Ho inviato il tutto a bugs.mozilla poichè ho buoni motivi per credere che si tratti di un bug
del browser in questione. In pratica ho la seguente funzione:
e il seguente codice htmlcodice:function music(any) { document.getElementById("myembed").src=any[any.selectedIndex].value; }
codice:<form><select onChange="music(this);"> <option value="music1.mp3">1st music</option> <option value="music2.mp3">2st music</option> </select> </form> <embed src="#" autoplay="true" hidden="true" />
In pratica Mozilla non permette di cambiare musica da una select...
Ho provato con ques'altro codice:
codice:<script type="text/javascript"> function mus() { document.getElementById("musica").innerHTML='<embed src="benoit.mp3" hidden="true" autostart="true" mastersound />'; } function mus2() { document.getElementById("musica").innerHTML='<embed src="walkthisway.mp3" hidden="true" autostart="true" mastersound />'; } </script> prima | seconda <div id="musica"></div>
che funziona benissimo con IE, mentre con Firefox la musica viene fatta partire e in pochi secondi si ferma: che senso ha? Inoltre firefox mi chiede un plugin inesistente...
Perfavore aiutatemi!

Rispondi quotando