<script language="JavaScript"> <!-- function musicOff() { document.onoff.midi.stop(); }
function musicOn() { document.onoff.midi.play(); }
function changeButton() { if (document.onoff.B1.value=='음악끄기') { document.onoff.B1.value='음악켜기'; musicOff(); } else { document.onoff.B1.value='음악끄기'; musicOn(); } } //--> </script> <form name="onoff"> <embed name="midi" src="음악파일주소" loop="-1" width="58" height="128" hidden> <input type="button" value="음악끄기" name="B1" onClick="changeButton()" style="font-family:verdana; font-size:11px; color:rgb(241,176,28); background-color:white; margin:0; padding:0; border-width:1; border-color:rgb(241,176,28); border-style:dotted;"> </form> |