Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Chad Fairbanks
The music part of the <EMBED> tag works just fine. It's the onload() DHTML event-thingy that won't work in conjunction with <EMBED>.

The code is copied more or less verbatim from the MSDN reference for onload() [which states explicity that it applies to <EMBED>], and it works just fine with the <IMG> tag.

What I'm trying to do is write some code that will preload a sound file before playing it in Internet Explorer. [If you don't preload, you get a herky-jerky playback of your file.] The web is littered with patchwork hacks that try to overcome this limitation in Internet Explorer. In theory, it should be pretty straightforward in Netscape, with the Sound object, and its load() method, but IE doesn't support the Sound object.

100 posted on 07/31/2003 7:51:15 PM PDT by SlickWillard
[ Post Reply | Private Reply | To 96 | View Replies ]


To: SlickWillard
Hmmm... Have you tried using the BGSOUND tag? But I digress. If you have the exact code you are using, and post it here, I could debug it for ya :0)
102 posted on 07/31/2003 8:04:41 PM PDT by Chad Fairbanks (So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me..)
[ Post Reply | Private Reply | To 100 | View Replies ]

To: SlickWillard
ok, I think I have an idea - looking at the reference for teh EMBED Tag on MSDN, I stumbled upon a "Behavior" Attribute for the EMBED Tag that allows you to tell it to download first, and notify a callback function when the download is complete...

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/embed.asp

Select "Behaviours", and check it out - it may help... Good luck!
103 posted on 07/31/2003 8:26:35 PM PDT by Chad Fairbanks (So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me..)
[ Post Reply | Private Reply | To 100 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson