Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Interaction between CSS and JS Date: Mon, 08 Jun 2015 19:59:38 +0200 Organization: solani.org Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1433786377 25296 eJwNycEBwCAIA8CVohKEcYDC/iPY+x6PLq0rShUOJ8Fkb/ZYi8QF3DcRn8b5z0JRt5CeWFYpDxhsEOs= (8 Jun 2015 17:59:37 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 8 Jun 2015 17:59:37 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwNyskBwCAIBMCWUNmFlMMh/ZcQ3zM4XCxTgorB9KSF7qKHuHBC8LBzJO9FnM/SfOWbu4HiDys4EZU= In-Reply-To: Cancel-Lock: sha1:Mygg1mXBFXxZPvqHAf8E8e3wjC8= X-NNTP-Posting-Host: eJwNysEBwCAIA8CVCpKA4yDI/iPYex8WheVG0DAYCT/Z0P0R4kd1liQi/KZO14ST/9fyu611Hg6BEOY= Xref: csiph.com comp.lang.javascript:28049 bit-naughty@hotmail.com wrote: > OK, as I've said before here, I'm a beginner - for the purposes of > this post, what I'm trying to do is pretty simple - when I click a > particular link on a page, I want a blue box to fade onto the screen. > How do I do that? > > The "box fade", I think I can look at my CSS book for. But how do I > trigger the animation *when the link is clicked*? Does this have > anything to do with className? Indeed, you can use the className property of the respective element to dynamically assign and/or remove (a) CSS class(es). For details you may want to refer to . -- Christoph M. Becker