Forum Moderators: open

Message Too Old, No Replies

Sound pre-loaders

how do I pre-load sounds on a web page

         

patrickeriksson

4:37 pm on Oct 7, 2003 (gmt 0)

10+ Year Member



Hello everyone,

I am using some sounds for rollovers on a site and I need to have them pre-loaded. Does anyone know about a general pre-loader that I can use for this? I have been searching the whole morning but not been able to find anything...

Thanks,

Pat.

dmorison

7:48 pm on Oct 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First i've heard about pre-loading sounds. There might be something that can be done with a bit of creative JavaScript.

Can you post the few lines of code around where you are actually using a sound so we can see how you're implementing it...

patrickeriksson

8:00 pm on Oct 7, 2003 (gmt 0)

10+ Year Member



Thanks for helping out.

It's either being used like this:

<a href="default.html" onMouseOver="document.all.music.src='sounds/purrrr.wav'">

or in a combination with a regular rollover:

<a href="default.html" onmouseover="hiLite('button1','images/button1b.gif');document.all.music.src='sounds/meow1.wav'" onmouseout="hiLiteOff('button1','images/button1a.gif')">

Pat.

keyplyr

6:08 am on Oct 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




You can also do it the old fashion way. In the <HEAD> put:

<link rel="next" href="/directory/file.type">

This will put the file into the browser's cache. Greatly increases the normal load time, however it's not a miracle fix since the pluggin will still need to be called and started.