at that point stopped it working in all browsers except IE6, but then with IE, a message appeared everytime I refreshed the page saying --> Click OK to run activex control
Shoulda thought about that, why would we consider that for a public web site... I issue a play() method on hover (mouseover) events to play a short sound...
and it plays in firefox and IE... Im just gonna stick with that and not bother with expecting plugins or use of activex...
I dont normally use sound in a web page Ive created... would appreciate if anyone knows a better way to do it... web's been around a while, I expected to look up --> Javascript and play sound --> on the web and it would have been easy and standard by now...
heres my code example in case I did somethin wrong... currently I commented out the use of the object tag
<a href='pgServices.asp'><img id='imgB1'
language="javascript"
onmouseover="try { playsound('sHover'); } catch(e) { } return true"
title='Services'
alt='Services'
src='images/buttonServices.gif' alt='' border='0' /></a>
<embed src="sounds/balloon.wav" autostart='false' width='0' height='0' name="sHover" enablejavascript="true">
<!--
<OBJECT
name="sHover"
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="src" VALUE="sounds/balloon.wav" />
<PARAM name="autoplay" VALUE="false" />
<PARAM name="controller" VALUE="false" />
<PARAM NAME="type" VALUE="audio/x-wav" />
</OBJECT>
-->
</body>
<script language='javascript'>
function playsound(soundobj) {
var thissound= eval("document."+soundobj);
thissound.Play();
}
</script>
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3


