View Full Version : Background Sound using html. (Simple Problem)
05-20-2005, 06: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 firstname.lastname@example.org
Thanks a lot and God Bless... :)
05-20-2005, 07: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, 07: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.