Geachte Heer,
Bedankt voor uw reactie!
Zo gezegd zo gedaan maar het werkt niet.
Eerst dacht ik dat het was omdat het geluid in "Mp3" stond maar met "WAV" werkt het ook niet.
Ik heb het even geupload naar W3C maar daar begrijp ik er nog minder van.
Voor de gemakkelijkheid zet ik hieronder even de validatiegegevens en de code.
Vriendelijke groetjes en nogmaals bedankt.
Bollekens
Validation Output: 4 Errors
1. Error Line 30, Column 21: Attribute "ID" is not a valid attribute. Did you mean "id"?
<!-- --><bgsound id="soundfiles">
✉
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
2. Error Line 30, Column 33: element "BGSOUND" undefined
<!-- --><bgsound id="soundfiles">
✉
You have used the element named above in your document, but the document type you are using does not define an element of that name. This error is often caused by:
* incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Frameset" document type to get the "<frameset>" element),
* by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
3. Error Line 31, Column 30: required attribute "TYPE" not specified
<script language="JavaScript"><!-- // Sound on Mouseover javascript supplied by
✉
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
4. Error Line 31, Column 624: end tag for element "DIV" which is not open
…mb' STYLE='position:absolute;'></DIV>"; document.body.insertAdjacentHTML("Bef
✉
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occurred in a script section of your document, you should probably read this FAQ entry.
En nu de CODE
# </head>
# <body>
# <noscript>Om deze pagina goed te kunnen weergeven dient
# Javascript aan te staan</noscript>
# <!-- --><bgsound id="soundfiles">
# <script language="JavaScript"><!-- // Sound on Mouseover javascript supplied by
http://www.hypergurl.com var aySound = new Array(); // PLACE YOUR SOUND FILES BELOW aySound[0] = "Dierenx_37.wav"; aySound[1] = "Dierenx_38.wav"; aySound[2] = "Dierenx_31.wav"; // Don't alter anything below this line 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
+"' AUTOSTART='FALSE' HIDDEN='TRUE'>" if (IE) auEmb.innerHTML = Str; else { auEmb.document.open(); auEmb.document.write(Str); auEmb.document.close(); } auCon = IE? document.all.soundfiles: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>
# <!-- --></bgsound>
# <div style="text-align: center;"></div>
# <div class="container">
# <div class="header"> Arts Jef en Miek </div>
# <div class="menu"> <br>
# <img class="c1" alt="" src="images/Knoppen/Miek.jpg"><br>
# <ul>
# <li> <a target="_blank" href="Miek-Galerie.html" onmouseover="playSound(0)" onmouseout="stopSound(0)">MIEK</a>
# </li>
# </ul>