Sure, just embed the sound into the document (<i><embed src="soundname.wav" autoplay="false" hidden="true" name="thesound"></i>). In JavaScript, when the mouse is click on (the attribute to the button being <i>onClick="somefunctionhere()"</i>) where in the mouse will start playing (the JavaScript function would call <i>document.thesound.play=true</i>).<br>
<br>
I'm not sure these attributes are correct, you would need to look them up for the different plugins, but these usually work. They're almost universal. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href=
Ok, what's the plugin that you are working with (you may want to detect for it)? You should then go the the plugin maker's web site and see if there is any information there. Netscape or MS won't help you because the attributes are plugin specific. Although I haven't used it in a long time, you could try <bgsound src="blah.wav"> and see if you can find info on that. I couldn't, but perhaps you'll have better luck than I. <p>REH<br><a href=mailto:hawkdogg@crosswinds.net>hawkdogg@crosswinds.net</a><br><a href=
Just a thought:<br>
<br>
try document.thesound.play()<br>
<br>
<p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.