loyalscot Posted April 11, 2006 Share Posted April 11, 2006 Hi I would like to use this background music switch script but need the page load option to default to music 'off' instead of 'on' can anyone help plz?<script>musi="music.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>Music On<option>Music Off</select>Many Thanks for any help given.LoyalScot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.