TandemTables Forum
Disco Inferno - Printable Version

+- TandemTables Forum (http://tandemtables.com/forum)
+-- Forum: Tandem Trends (/forumdisplay.php?fid=1)
+--- Forum: Code (/forumdisplay.php?fid=3)
+--- Thread: Disco Inferno (/showthread.php?tid=19621)



Disco Inferno - The Professor - 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

Code:
<audio src="fifth.mp3" id="my_audio" loop="loop"></audio>
  &lt;script type="text/javascript"&gt;
    setTimeout(function(){
      document.getElementById("my_audio").play();
    },87000)
  &lt;/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


RE: Disco Inferno - Linda - 05-12-2021 05:00 AM

That is very entertaining. The 3D effect is fantastic. Great work.