View Full Version : Background Sound using html. (Simple Problem)
05-20-2005, 07:46 PM
Can you help me if what is the problem of this code?
<BGSOUND SRC="file:///d:/Songs/MP3mix/Jan/Wav Files/ted3.wav" loop="infinite">
Or do you have any other idea to embed a background sound using HTML?
Please email me your answer at email@example.com
Thanks a lot and God Bless... :)
05-20-2005, 08:26 PM
bgsound will only work in Internet Explorer. If you are asking why it doesn't work for other people is because the song is on your hard drive. You have to upload the song to your server and then go from there. You can use the embed tag.
<embed src="yoursong.wav" hidden="true" autostart="true" loop="true"></embed>
05-20-2005, 08:32 PM
The main problem is that your SRC attribute is pointing to a file on the local machine. You'll want to use a relative (sound.wav) or absolute (http://server.com/sound.wav) path for that to work.
The other problem is that <bgsound> is a proprietary tag created by Microsoft. It is not standard HTML, and neither is <embed>. Try <object>.
Previous post came while I was composing mine, so this is redundant, but yes...
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.