Website audio: basic html embedding

Wikiaudioweb.png

From WikiAudio

(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
#Copy and paste the following code onto your website:
 
#Copy and paste the following code onto your website:
  
<EMBED SRC="myaudiofile.wav" VOLUME="50" HEIGHT="60" WIDTH="144">
+
<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 :   
VOLUME="50" HEIGHT="60" WIDTH="144"
 
  
  
 +
<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

  1. Upload the audio file to your webserver and make sure it is in the same directory as your website.
  1. 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.

  1. 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>