Mouseover: bildwechsel und sound bei bildmouseover

Mosweetboy

Grünschnabel
ich hab mal ne frage und zwar kann mir jemand helfen.ich hab ein dringendes problem .und zwar kann mir jemand sagen wie man mehrere mouseover effekte verwenden kann also ich wollte ein bild mit nem link versehen und das bild wechselt dann zum anderen bild und beim wechsel kommt der sound .das hab ich schon alles geschaft nur ist das problem das der entweder nur den sound abspielt oder nur das bild wechselt aber nicht beide effekte macht. bitte helft mir .hier mein code den ich bis jetzt hab.

Code:
<script LANGUAGE="JavaScript">
<!--
var aySound = new Array();
aySound[0] = "http://www.tutorials.de/forum/images/fireball.wav";

document.write('<BGSOUND id="auIEContainer">')
IE = (navigator.appVersion.indexOf("MSIE")!=-1 && document.all)? 1:0;
NS = (navigator.appName=="Netscape" && navigator.plugins["LiveAudio"])? 1:0;
ver4 = IE||NS? 1:0;
onload=auPreload;

function auPreload() {
if (!ver4) return;
if (NS) auEmb = new Layer(0,window);
else {
Str = "<DIV ID='auEmb' STYLE='position:absolute;'></DIV>";
document.body.insertAdjacentHTML("BeforeEnd",Str);
}
var Str = '';
for (i=0;i<aySound.length;i++)
Str += "<EMBED SRC='"+aySound[i]+"' AUTOSTART='FALSE' HIDDEN='TRUE'>"
if (IE) auEmb.innerHTML = Str;
else {
auEmb.document.open();
auEmb.document.write(Str);
auEmb.document.close();
}
auCon = IE? document.all.auIEContainer:auEmb;
auCon.control = auCtrl;
}
function auCtrl(whSound,play) {
if (IE) this.src = play? aySound[whSound]:'';
else eval("this.document.embeds[whSound]." + (play? "play()":"stop()"))
}
function playSound(whSound) { if (window.auCon) auCon.control(whSound,true); }
function stopSound(whSound) { if (window.auCon) auCon.control(whSound,false); }
//-->
</script>

Code:
<a href="http://www.gfzk.com/impressum.html" onmouseover="document.getElementById('versteckbild4').style.visibility='visible'" onmouseout="document.getElementById('versteckbild4').style.visibility='hidden'">
<img src="http://www.gfzk.com/bilder/paragraph.jpg"
<a href="http://www.gfzk.com/impressum.html" 
   onMouseOver="playSound(0)" onMouseOut="stopSound(0);"
   onMouseOver="document.Bild4.src='http://www.gfzk.com/bilder/paragraph_blau.jpg';" 
   onMouseOut="document.Bild4.src='http://www.gfzk.com/bilder/paragraph.jpg';"
   name="Bild4" 
   width=130 height=130
   alt="http://www.gfzk.com/impressum.html" 
   border=0></a> &nbsp;&nbsp;&nbsp; <img id="versteckbild4" src="http://www.gfzk.com/bilder/text_kontakt_4.jpg" width="413" height="34" alt="" style="visibility:hidden;">
 
Zurück