Ho fatto questo script:
codice:
<html>
<head>
<title>musica</title>
</head>
<body onload="play(embeds)">
<EMBED SRC = "http://digreo.interfree.it/AllMusicFruit.mid"
HIDDEN = TRUE
CONTROLS = console
VOLUME = 100
LOOP = FALSE
AUTOSTART = FALSE
NAME = "fruit"
MASTERSOUND>
<script language="Javascript">
function play(embeds)
{
if (document.embeds['fruit'] == null ||
document.embeds['fruit'].IsReady() != true )
{
alert("Lasciate che la Musica possa caricarsi completamente per ottenere una migliore prestazione della lettura del file!");
history.go(0);
return;
}
else {
if (document.embeds['fruit'].IsReady() == true )
{
document.embeds['fruit'].Play(true|false);
}
}
}
function stop(embeds) {
document.embeds['fruit'].Stop();
}
</script>
<A HREF = "javascript:play(embeds);"><font color="blue">.:_ Avvia la Musica! PLAY</font color>_
</img></A>
<A HREF = "javascript:stop(embeds);"><font color="red">:._ Ferma la Musica. STOP</font color>_
</img></A>
</body>
</html>
Purtroppo però no funziona ne l'allert ne il far partire la musica... HELPPPPPP!!! ^^;