html add web page background music, how to stop web page background music, guide how to add and stop web page background music
(Website Helper) web page music Number of Visitors: Site Map

how to add and stop web page background music



Website Design
Website Promotion
Graphic Design
Programming
Free Software
Computer Tips
Discount Stores
This site provides users with the information about html add web page background music, how to stop web page background music, guide, and more.

If you think that this site is helpful, please recommend your friends to visit our site.



Many webmasters like the idea of adding background music to their web sites because adding background music to their web page will make their website standing above others.

How to add background music to your web page?

To add background music to your web page is a very simple task that you can do. The following is the code that you can use:

< embed id="play" width="0" height="0" src="start.mid" autostart="true" loop="false" >

Note:

1. To have background music start automatically, place the code after the HEAD tag.

2. If you want to repeat the music, you can set loop="true"

How to stop background music to your web page?

When you add background music to your web page, you need to consider that not everyone likes to hear the music. If it starts automatically, you give your visitors no choice other than to mute or leave your site. So it is important to add a feature to stop the background music. You can use the following code:

< a href="javascript: document.getElementById('play').stop();" >Stop Background Music< /a >

Note:

You need to make the same id for Stop feature and Play feature. Here we are using the ID "play" for both of them.

(Website Helper) web page music (c) EduSoftMax - www.edusoftmax.com