Thursday, July 30, 2009

What is the html code for inserting music in a webpage?

I have HTML for Dummies but I still can not find that code.

What is the html code for inserting music in a webpage?
you will need to use the embed tag





%26lt;embed src="[file location]" height="50" autostart="true" loop="true"%26gt;


%26lt;/embed%26gt;





or the object tag





%26lt;object


classid="clsid:22D6F312-B0F6-11D0-94AB...


%26lt;param name="FileName" value="MyFile.wav" /%26gt;


%26lt;/object%26gt;





if you want to give people control over the sound





using %26lt;bgsound%26gt; gives no ability to turn the sound off (not a good idea)





More info


http://www.w3schools.com/media/media_bro...
Reply:Don't.


Please.


Music on websites is the most annoying thing...
Reply:%26lt;a href="yourmusicfile.mid"%26gt;Play background music%26lt;/a%26gt;
Reply:%26lt;!--start copy from here --%26gt;





%26lt;a href="......" %26gt;


%26lt;bgsound src="http://www.geocities.com/emagzine1/... loop="-1"%26gt;%26lt;/a%26gt;





%26lt;!--end here --%26gt;





Now we have a variety of 55 music files. some are romantic , some are sad some are funny. (02.mid......)


These files are online... if u want ur music files just specicy the path....


No comments:

Post a Comment