Page 1 of 1

HTML code for sounds

PostPosted: Thu Sep 15, 2005 6:17 pm
by MourningCloak
Ok, so I have been dabbling in html... I'm not anywhere past the beginner level, but I have a pretty good grip on the basics, e.g., text, pics, links, background images, text style changes. I don't know how to do sounds, however, and I have had alot of difficulty (for some weird reason) with the tutorials they post on websites. So I thought maybe someone could explain how it's done for me? :) It would be really sweet of someone! Also, I could use some help with uploading sound.

Thank you for listening,

MourningCloak

PostPosted: Thu Sep 15, 2005 7:08 pm
by Slater
<embed> tags. Functions that go with it are...
src (the most important one.)
ex. <embed src = "http://yourpage.com/example.mid">

autostart: boolean function, true or false.
ex. <embed src="http://yourpage.com/example.mid" autostart=true>

loop: boolean.
<embed ... loop=true>

hidden: boolean
<embed ... hidden=false>

volume: how loud it is in percentage of natural volume
<embed ... volume=100> (this is normal volume. 50 would be half volume)

height: Only works if hidden is false. This shows the volume control and other things on your page. Note that it may be a different player for one user than for another, so you might wanna put this at the bottom of your page and make it kinda large.
<embed ... height=100>

width: same as height.

Just remember... there are 56kers still out there, so .mp3 and .wav files are not recommended. .mid are the most commonly used file type for embed tags right behind .swf files (and that's another story).