chechu
10-11-2008, 09:56 PM
Hey all, I added a mp3 sound to my index, with this code:
<script>
<!--
var musicsrc="bajofondo.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
I have two problems:
1/ Problem is that, when I click on a link to go to another page, the music stops. And when I place this code in every page, the music starts over again every time I go to another page. How can I keep the music going during the whole visit of the site, please ?
2/ How can add a 'stop/pause' image ?
<script>
<!--
var musicsrc="bajofondo.mp3"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="infinite">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
//-->
</script>
I have two problems:
1/ Problem is that, when I click on a link to go to another page, the music stops. And when I place this code in every page, the music starts over again every time I go to another page. How can I keep the music going during the whole visit of the site, please ?
2/ How can add a 'stop/pause' image ?