Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Fokke Nauta" Newsgroups: comp.lang.javascript Subject: Re: Sound on/off button does not work Date: Wed, 7 Dec 2011 19:48:58 +0100 Lines: 30 Message-ID: <9k9qopFudlU1@mid.individual.net> References: <9k9208FoloU1@mid.individual.net> <4edf9765$0$29307$a8266bb1@newsreader.readnews.com> X-Trace: individual.net BpEJM5r3FeMBaH1ituHUNgqfiBuvit5J7/QbJQ6Jh321lZnYkk Cancel-Lock: sha1:p5zcPSl4GarGTdZup6a8w7DEMpo= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Original Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:8973 "Denis McMahon" wrote in message news:4edf9765$0$29307$a8266bb1@newsreader.readnews.com... > On Wed, 07 Dec 2011 12:46:13 +0100, Fokke Nauta wrote: > >> I searched for a sound on/off button for web pages. The script I found I >> placed in an HTML document. I adapted it only to suit a different sound >> file and to change the text on the button. It does not work though. The >> original version didn't work either. The button changes allright but the >> sound stays on. Can any one help me out? > > Have you tried the following: > > http://validator.w3.org/unicorn/check?ucn_uri=www.pc3.nl%2Ftest% > 2Ftest.htm&ucn_task=conformance# Hi Dennis, I just did and was surpised with the amount of errors. > which suggests to me that (a) your script element is incorrectly defined > and (b) the embed element isn't supported in the defined doctype. Well, I used the embed element on other webpages with the same doctype and it works perfectly. But which doctype should I choose, to start with? Regards, Fokke