...

View Full Version : Background Sound using html. (Simple Problem)



JygzIsHere
05-20-2005, 07:46 PM
Hi,

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 anotherjygz@yahoo.com

Thanks a lot and God Bless... :)

Jygz

_Aerospace_Eng_
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>

]|V|[agnus
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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum