Background Music
-
To have a music on my blog, I used below code:
<!– Begin Music Section –>
<script language=”javascript”>
function BeginMusic(){
if(document.MusicForm.snd.value == ‘Music on’)
{
document.all.music.src=’https://www.sharemation.com/parsa1976/Zebigniew%20Preisner%20-%20Dekalog%20VIII%20-%203.WMA’;
document.MusicForm.snd.value = ‘Music off’;
}
else
{
document.all.music.src=”;
document.MusicForm.snd.value = ‘Music on’;
}
}
</script><center><form name=”MusicForm”>
<input name=”snd” type=”button” value=”Music on” OnClick=”BeginMusic()”>
</form></center>
<bgsound id=music loop=-1 autostart=”true” ><!– End Music Section –>
It works when the visitor clicks on it. How will it work automatically? Meanwhile, if there is an easier way to have a music on the blog, don’t hesitate and write it down please.
- The topic ‘Background Music’ is closed to new replies.