Hvis du ikke vil have dem :O)
jeg er her ikke for pointenes skyld, jeg er her for at hjælpe og få hjælp :O)
Og det er jo ikke din skyld IE6 skoder.......
Men man bliver jo nød til at kode til det andre bruger :O)) fandt et andet script der funker i IE6 og det Preloader også lydende......
Smidder det lige :O))
<script LANGUAGE="JavaScript"><!--
// Preload and play audio files with event handler (MouseOver sound)
// designed by JavaScript Archive, (c)1999
// Get more free javascripts at
http://jsarchive.8m.comvar aySound = new Array();
// Below: source for sound files to be preloaded
aySound[0] = "sound/ansatte.wav";
aySound[1] = "sound/tegninger.wav";
aySound[2] = "sound/gaestebog.wav";
aySound[3] = "sound/facts.wav";
aySound[4] = "sound/spil.wav";
aySound[5] = "sound/traditioner.wav";
// DO NOT edit below this line
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>
<A HREF="YourPage.html" onMouseOver="playSound(2)" onMouseOut="stopSound(2)">Gæstebog</A>