Ciao,
.Play()
.Stop()
non mettere l'embed in un campo nascosto, w=0 h=0 si vedrà solo un minuscolo puntino.
Codice PHP:
<script type="text/javascript">
function soundbg(active){
if(active=="off") document.getElementById("bgsound").Play();
if(active=="on") document.getElementById("bgsound").Stop();
}
</script>
</head>
<body>
<embed id="bgsound" autostart="true" src="audio/soft1.wav" loop="true" width="0" height="0"/>
[url="javascript:soundbg('on')"][img]images/document/sound_on.png[/img]STOP[/url]
<a href="javascript:soundbg('off')" title="Play">[img]images/document/sound_on.png[/img]PLAY</a
M.