Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <h1>Audio Player</h1>
- <audio controls id="pod1" style="width:100%;">
- <source src="MP3_FILE.mp3" type="audio/mpeg">
- <!-- fallback -->
- <p>Your browser doesn't support HTML5 audio. Here is
- a <a href="MP3_FILE.mp3">link to the audio</a> instead.</p>
- </audio>
- <!-- skip link -->
- <span href="#pod1" onclick="skipAudio('pod1', '90')" class="skip-btn">>></span>
- <!-- Javascript -->
- <script>
- function skipAudio(plyr, skip) {
- var plyr = document.getElementById(plyr);
- var currentTime = plyr.currentTime;
- plyr.currentTime = skip;
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement