Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28049

Re: Interaction between CSS and JS

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" <cmbecker69@arcor.de>
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 <ml4l69$omg$1@solani.org> (permalink)
References <ee169a03-8897-4861-8e7d-2d8eb0fc1d62@googlegroups.com>
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 <ee169a03-8897-4861-8e7d-2d8eb0fc1d62@googlegroups.com>
Cancel-Lock sha1:Mygg1mXBFXxZPvqHAf8E8e3wjC8=
X-NNTP-Posting-Host eJwNysEBwCAIA8CVCpKA4yDI/iPYex8WheVG0DAYCT/Z0P0R4kd1liQi/KZO14ST/9fyu611Hg6BEOY=
Xref csiph.com comp.lang.javascript:28049

Show key headers only | View raw


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
<https://developer.mozilla.org/en-US/docs/Web/API/Element/className>.

-- 
Christoph M. Becker

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Interaction between CSS and JS bit-naughty@hotmail.com - 2015-06-08 10:25 -0700
  Re: Interaction between CSS and JS "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-06-08 19:44 +0200
  Re: Interaction between CSS and JS "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-08 19:59 +0200
    Re: Interaction between CSS and JS Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-08 22:18 +0200
      Re: Interaction between CSS and JS "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-08 22:35 +0200
        Re: Interaction between CSS and JS Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-06-09 01:06 +0200
  Re: Interaction between CSS and JS dhtml <dhtmlkitchen@gmail.com> - 2015-06-16 15:10 -0700

csiph-web