gsc1ugs

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About gsc1ugs

  • Rank
    Newbie
  1. I'm trying to remove the download link to the control, could anyone help with this please? <html> <head> </head> <body> <audio id="sample" src="unforgettable fire.mp3" controls preload></audio> <br> <a href="javascript:playSegment(10, 15);">Play1</a> <script> var audio = document.getElementById('sample'); var segmentEnd; audio.addEventListener('timeupdate', function () { if (segmentEnd && audio.currentTime >= segmentEnd) { audio.pause(); } console.log(audio.currentTime); }, false); function playSegment(startTime, endTime){ segmentEnd = endTime; audio.currentTime = startTime; audio.play(); } </script> </body> </html>
  2. Has anyone got any knowledge with simple dom please?