05-10-2021, 05:31 PM
Demonstrates using 2 mp3's on same page. The second one is delayed using javascript while the first one plays
and demonstrates css used to write on a background image.
<div id="cover0" class=center style="background-image:url(discocover.jpg);width:1366px;height:768px;"><h1>Welcome to the disco this evening</h1></div>
http://d21c.com/leprofesseur/disco-club.html
Code:
<audio src="fifth.mp3" id="my_audio" loop="loop"></audio>
<script type="text/javascript">
setTimeout(function(){
document.getElementById("my_audio").play();
},87000)
</script>
<audio autoplay>
<source src="disco-intro.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
and demonstrates css used to write on a background image.
<div id="cover0" class=center style="background-image:url(discocover.jpg);width:1366px;height:768px;"><h1>Welcome to the disco this evening</h1></div>
http://d21c.com/leprofesseur/disco-club.html