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


Groups > comp.lang.javascript > #15523

Re: Altering what a class does

From Dr.Kral@nyc.rr.com
Newsgroups comp.lang.javascript
Subject Re: Altering what a class does
Message-ID <8coc38pahag7v8pdmgevm493f86o30fe23@4ax.com> (permalink)
References <ZbqZfMCjRpMQFwp9@invalid.uk.co.demon.merlyn.invalid>
Organization EasyNews, UseNet made Easy!
Date 2012-08-23 13:16 -0400

Show all headers | View raw


On Mon, 20 Aug 2012 20:47:47 +0100, Dr J R Stockton
<reply1234@merlyn.demon.co.uk.invalid> wrote in
<ZbqZfMCjRpMQFwp9@invalid.uk.co.demon.merlyn.invalid>:


>At the press of a button, I wish to alter JAX to { display: block }  -
>or to just { } or to remove the rule; the button already has an onclick
>handler.
>
>It would save me some cogitation if the necessary code were supplied.

Create two style sheets with ids and disabled="disabled" for the class.
Then with JS toggle the value of disabled from _true_ to _false_.  

Perhaps search <<use alternate style sheets>> for examples which is swap
style sheets within a collection.

K

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


Thread

Altering what a class does Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-20 20:47 +0100
  Re: Altering what a class does dhtml <dhtmlkitchen@gmail.com> - 2012-08-20 16:12 -0700
    Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-21 07:59 +0000
      Re: Altering what a class does Dr J R Stockton <reply1234@merlyn.demon.co.uk.invalid> - 2012-08-23 19:54 +0100
        Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-08-23 23:01 +0000
  Re: Altering what a class does Dr.Kral@nyc.rr.com - 2012-08-23 13:16 -0400
  Re: Altering what a class does "Tom de Neef" <tdeneef@qolor.nl> - 2012-08-24 19:18 +0200
  Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-08-29 13:33 -0700
    Re: Altering what a class does Dr J R Stockton <reply1235@merlyn.demon.co.uk.invalid> - 2012-08-30 22:19 +0100
      Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-08-31 20:39 -0700
        Re: Altering what a class does "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-01 08:23 +0000
        Re: Altering what a class does Dr J R Stockton <reply1235@merlyn.demon.co.uk.invalid> - 2012-09-02 19:49 +0100
          Re: Altering what a class does Scott Sauyet <scott.sauyet@gmail.com> - 2012-09-03 15:45 -0700
            Re: Altering what a class does Gene Wirchenko <genew@ocis.net> - 2012-09-03 17:13 -0700
            Re: Altering what a class does Dr J R Stockton <reply1236@merlyn.demon.co.uk.invalid> - 2012-09-04 21:10 +0100
            Re: Altering what a class does Dr J R Stockton <reply1236@merlyn.demon.co.uk.invalid> - 2012-09-06 23:37 +0100

csiph-web