Click to See Complete Forum and Search --> : play on mouse over in (net scape)


andrew1234
07-31-2003, 02:01 AM
hi

how do i make a little .wav
play on mouse over in netscape

<A href="1@2.com" class="link" onmouseover="play sound">

and i'm guessing that the sound has to be preloaded?

thanks for the help

Andrew

gil davis
07-31-2003, 06:50 AM
That depends on what version of Netscape you are talking about.

NS 4 requires a plug-in. Once you decide what plug-in to use, then you have to find out what javascript functions are available for that plug-in. Microsoft has a plug-in with Windows Media 6.4 for Netscape that is very good. See

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmp6sdk/htm/windowsmediaplayercontrolversion64scriptingreference.asp

for some help.

NS 6 totally changed their API for plug-ins, and you can no longer use perfectly good NS 4 methods to play music. WMP 6.4 does not work in NS 6. Possibly WinAmp, RealPlayer or Beatnik will have a solution.

I have not looked into playing muic in NS 7.