Basics

HTML

Java

Colors

Frames

Tables

Fonts

Graphics

Links

Contact

how do i put music on my page?

 

The very easiest way to play a music file is to link to it directly (of course your midi or MP3 has to be uploaded to your server). This method works with MP3's too as long as your brower has something to play it on such as Real Player:

<a href="YourMidiName.mid">Click here to play music</a>

It would look like this:
Click here to play music



You can also use an image instead of a text link:



You can embed music into your page so that it starts automatically when someone views your page (this only works with MSIE 4.0 and Netscape 4.0), it gives people a way to turn the music off if they want. You just right click on the button to shut it off.

<embed src="yourmidiname.mid" width=25 height=25 autostart=true repeat=true loop=true> This is what it looks like:

music




If you like the small consoles on your page you can use this code. This works in Netscape and MSIE. Here it is:

<embed src="your_midi_name.mid" WIDTH="145" HEIGHT="60" AUTOSTART="TRUE" LOOP="FALSE">

It looks like this:



Autostart="TRUE" just means that the music will automatically start playing when your page loads. If you put "FALSE" instead of "TRUE" the person visiting your page will have to click on the play button on the console to make it play. Loop="TRUE" means that the music will never stop playing until the person clicks on the stop button. Loop="FALSE" means that the midi will only play once, and then will automatically shut off.