HTML code for sounds

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

HTML code for sounds

Postby MourningCloak » Thu Sep 15, 2005 6:17 pm

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
User avatar
MourningCloak
 
Posts: 22
Joined: Mon Sep 05, 2005 3:40 pm
Location: A remote corner of the milky-way...

Postby Slater » Thu Sep 15, 2005 7:08 pm

<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).
Image
User avatar
Slater
 
Posts: 2671
Joined: Sat May 22, 2004 10:00 am
Location: Pacifica, Caliphornia


Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 58 guests