Jump to content

The_Unkown675

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by The_Unkown675

  1. Ok, so I tried doing running the script below, and all that appeared is the button, any help?

    <DOCTYPE html>
    <html>
    <body>
    
    <p id="start"> </p>
    
    <button onclick="end()"> Click Me To Find 10% more than the number above</button>
    
    <p id="ending"> </p>
    
    <script>
    
    var start_value = 10000 ;
    
    document.getElementById("start").innerHTML = start_value ;
    
    var percent = start_value / 10 ;
    
    var end_value = start_value + percent ;
    
    function end()
    	document.getElementById("ending").innerHTML = end_value ;
    
    
    </script>
    
    
    </body>
    
    </html>
    
  2. In most cases mp3 should work, try this

    <audio controls>

    <source src="http://w3schools.com/html/horse.ogg" type="audio/ogg">

    <source src="http://w3schools.com/html/horse.mp3" type="audio/mpeg">

    </audio>

     

    This should work because it has full path from w3schools website. If it does not? Have you saved your page as utf8 encoded if using notepad or mac text editor, and are you sure the path to the audio file is correct.

    Ok, so I'm using weebly (because it's cheap). What do I do, just put the file in the page and then find that url then post it there. Weebly fuly supports UTF 8

  3. Ok, so I've been trying to implement audio into my website, but when I put in the source, the source can not be found. Please help.

     

    Thanks in advance!

     

    Here is my current code :

    <!DOCTPYE html>
    <html>
    <body>
    
    <audio src="https://youtu.be/ZsMKqVv0SBo" controls>
    
    </audio>
    
    </body>
    </html>
    
×
×
  • Create New...