Click to See Complete Forum and Search --> : Adding sound?


redsky
02-24-2003, 04:46 PM
Does anyone know how to add sound to a webpage?
I have a mac with built in speakers.
Can I record music and add this to a webpage?

Sandy

Pixelchik
02-24-2003, 10:14 PM
Sound can be irritating to many people, so be considerate how/what/how long you put sound files in your website. But here is some simple code to embed a audio file or any audio file into a web page. The "hidden" text indicates to hide the player's controls. I work on a Windows system so I don't know how this will play on a MAC. You should also make sure you have compressed the audio file for efficient playback/download time.

<embed src="yourmusic.wav" autostart="true" hidden="true"></embed>

redsky
02-24-2003, 11:57 PM
Thank you!

Yes, you're right, I find it anoying, too. but I saw a website with just a quiet calm piano sound in the background which was very nice and wonder how to do that.

Thanks! So I guess I have to get a wav file somehow to try that out.

Sandy