Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play sound onMouseOver

Status
Not open for further replies.

dfurm

Technical User
May 28, 2000
27
GB
Hi
I'm new to javascript and I would like to be able to play
a .wav file when placing my mouse over an image on an html
page.
I have been told that there are a number of ways to do this
and that it depends on the browser. I don't want it to access a plug-in. I just want it to play the sound.

Any help would be greatly appreciated


 
The only way for this not to access a plug-in is to use a Java applet. Unfortunately, if you just use Javascript to play a .WAV file in an <embed ...> tag, the browser/OS will decide on its own which application to use; you have no control over that. It might use Windows Media Player, it might use Netscape's Java sound plug-in, it might use Real Audio, Winamp... basically whatever is the default sound player set to handle WAV files.

Pretty clumsy... handling sound with Javascript has not really advanced much over what it was 3 years ago.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top