How to make mp3 templates for websites

Asked By 0 points N/A Posted on -

Hi guys,

I'm making mp3 templates for websites and only use arrays to schedule the order of playing music. Is there an easier way of doing this and if so please share the source code of the same.


Answered By 0 points N/A #165699

How to make mp3 templates for websites


Follow this instruction:

  • Paste the following code into any HTML page.
  • Create a "home-sound. mp3" and a "home-sound. ogg" sound file.
  • Add the "mime" type ogg in your hosting control panel.

Includes "fallback" "bgsound" for non-HTML5 IE browsers only.

For Looping the Music:
Edit the loop="1" to loop="100" on code line number 14,
and locate the audio tag in the sound code and add "loop" as highlighted below:

For simple background music in Internet Explorer only use the following code:

To get more Code for HTML Audio
Hope you will enjoy it.

Thanking you

Franke Mary

Login/Register to Answer

Related Questions