topical media & game development
graphic-javascript-effect-music-background-effect.htm / htm
<!-- 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 -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: SPD team (webmaster@superprodesign.com) -->
<!-- Web Site: http://www.superprodesign.com -->
<script>
<!--Original script by SPD. Visit us for more scripts like this one at www.superprodesign.com Forbidden by copyright law to remove this comments under any situation. Enjoy! -->
<!--Write the background's sound URL between the "" like in the example below-->
musi="1mid.mp3"
<!--Don't edit from here on-->
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 <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.29 KB -->
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.