How to make mp3 templates for websites

Asked By 0 points N/A Posted on -
qa-featured

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.

regards

SHARE
Answered By 0 points N/A #165699

How to make mp3 templates for websites

qa-featured

Hi,
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.

Code1:Attached
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:

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

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

Thanking you

Franke Mary

Login/Register to Answer

Related Questions