(I accidentally posted this in the HTML section already, but was unable to delete it).



Is it possible to have a mouseover event do two things at once? What I want to do is have a different image show on mouseover AND have a quick .wav file play. Can this be done?

Below is the code to do it separately, I just want to know if there is a way to combine the image swap and sound on one mouseover.

--------------------------------------

<head>
<script language="javascript1.1">
<!--

contact1=new Image(100,100)
contact1.src="images/contact1.jpg"
contact1_neg=new Image(100,100)
contact1_neg.src="images/contact1_neg.jpg"
//-->
</script>

<script>
<!--
function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}
//-->
</script>
</head>

<body>

<EMBED SRC="Camera.wav" HIDDEN=TRUE AUTOSTART="false" MASTERSOUND NAME="camera">


<a href="#"
onmouseover="filter('x','contact1_neg')"
onmouseout="filter('x','contact1')">
<img src="images/contact1.jpg" name="x" border=0 width=100 height=100></a>

<hr>


<A HREF="#"
onMouseOver="javascript:document.camera.play()">

<img src="images/contact1.jpg" border=0 width=100 height=100>
</A>