Website audio: basic html embedding
From WikiAudio
(Difference between revisions)
| Line 7: | Line 7: | ||
#Copy and paste the following code onto your website: | #Copy and paste the following code onto your website: | ||
| − | + | <script> <EMBED SRC="myaudiofile.wav" VOLUME="50" HEIGHT="60" WIDTH="144"></script> | |
Replace the "myaudiofile.wav" with the name of your audio file. Keep the quotation marks. This embeds the audio and creates a player that allows you to turn the audio on and off. | Replace the "myaudiofile.wav" with the name of your audio file. Keep the quotation marks. This embeds the audio and creates a player that allows you to turn the audio on and off. | ||
#Adjust volume, height and width settings to match your website by changing the respective values in the code : | #Adjust volume, height and width settings to match your website by changing the respective values in the code : | ||
| − | |||
| + | <script> VOLUME="50" HEIGHT="60" WIDTH="144"</script> | ||
[[category:tutorials]] | [[category:tutorials]] | ||
Revision as of 11:02, 9 August 2012
Web audio html embed tutorial
- Upload the audio file to your webserver and make sure it is in the same directory as your website.
- Copy and paste the following code onto your website:
<script> <EMBED SRC="myaudiofile.wav" VOLUME="50" HEIGHT="60" WIDTH="144"></script>
Replace the "myaudiofile.wav" with the name of your audio file. Keep the quotation marks. This embeds the audio and creates a player that allows you to turn the audio on and off.
- Adjust volume, height and width settings to match your website by changing the respective values in the code :
<script> VOLUME="50" HEIGHT="60" WIDTH="144"</script>
