Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Opacity Problem for IE8 and lower Date: Thu, 29 May 2014 17:17:12 -0600 Lines: 24 Message-ID: X-Trace: individual.net ndJQ0ZriYlJocySUd/+/CwlaqZiffbDKpylvJnge/MJUDa+SOy Cancel-Lock: sha1:S0eeGa3bC8grjSHS96OunqKKQ2k= 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: csiph.com comp.lang.javascript:24467 Hi: I have the following statement in a function that is supposed to restore the default opacity to 1.0 (100 in IE8 and lower) in several 'divs' from the opening 40 opacity. document.getElementById("iMyDivId").style.filter = alpha(opacity=100) ; This gives a JS runtime error For all other browsers, I use: document.getElementById("MyDivId").style.opacity = 1.0 ; // works correctly Would someone please correct my syntax ? Thank you. -Mel Smith