Adding music to your page
There are 2 ways of adding music to your page.
The first way is simply adding a line of code in the head section of your page.
<bgsound src=colorsofwind.mid>
This will start the music as soon as the viewer gets on to your page.
Example
|
<html> <head> <title>My page</title> <bgsound src=colorsofwind.mid> </head> <body> </body> </html>
|
This will play your midi one time, then stop
So how do you make it play indefinitely?
Well you have to add a statement.
The statement can be added in 1 of 2 ways
#1 loop=-1 (that's right..a NEGATIVE 1)
<bgsound src=colorsofwind.mid loop=-1>
or
<bgsound src=colorsofwind.mid loop=infinite>
So have you figured out that you can also make it play any number of times that you like?
<bgsound src=colorsofwind.mid loop=2> will play 2 times then stop.
Click HERE for an example of this method