موضوع اسكريپت كليدي براي پخش يا عدم پخش موزيك در صفحه وب


با اين اسكريپت مي توانيد موزيكي كه در پيش زمينه صفحه در حال پخش مي باشد را اجرا و يا حتي قفل كنيد .

 

<!-- ONE STEP TO INSTALL BACKGROUND MUSIC SWITCH:

1. Copy the coding into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the BODY of your HTML document -->

<BODY>

<!-- This script and many more are available free online at -->



<script>

function mus1()
{
if (t.options.selectedIndex==0){
mus.innerHTML="<embed src="+musi+" loop=-1>"
}
if (t.options.selectedIndex==1){
mus.innerHTML=""
}
}
document.write("<span id='mus' style='position:absolute;top:-90000'><embed src="+musi+" width=0 height=0 loop=-1></span>")
</script>
<select name="t" onchange=mus1()>
<option>Enable background music
<option>Disable background music
</select>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by ostadonline

<!-- Script Size: 1.29 KB -->