PDA

View Full Version : embed tag question. damn hard one too if you ask me!!


ptf1
12-19-2001, 09:18 AM
Is it possible to have an embedded sound in a web page, that does not automatically play when the page is loaded, with no controls visible, and for it to play only when a certain link/image is clicked on?

pixelmonkey
12-19-2001, 09:49 AM
what format of audio did you have in mind?

chris<pixelmonkey>:monkey:

Jon Hanlon
12-19-2001, 06:47 PM
For Internet Explorer, in the <head> section, put:
<bgsound id="bgs" loop="-1" src=""></bgsound>

Then in the onclick() handler of your image, link, whatever
if (document.all) document.all.bgs.src="/sounds/itsSoEasy.mid"