How to put background music?

They have: 5,633 posts

Joined: Jan 1970

How can I put background music on my web page with html? Thanks for any help!!!

They have: 117 posts

Joined: Feb 2000

Hi,

Try this:

<embed src="xxx.mid" hidden=false loop=false autostart=true volume=100% height=46 width=150 mastersound><br>

Where xxx is the name of the midi file you want to play. Hidden=false will display a control panel with height=46 and width=150 which will allow the person looking at your site to turn off the music if they want (this is highly recommended). You can say hidden=true which will not display the control panel, but then the user will not be able to turn off the music. Autostart=true will start the music automatically. If you say autostart=false, the user can use the control panel to start the music if they want. Hope this helps.

Bob

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.