OT- javascript question removing style settings

From: Don Russell (fedora_at_drussell.dnsalias.com)
Date: 10/10/05

  • Next message: Jim Higson: "Re: OT- javascript question removing style settings"
    Date: Mon, 10 Oct 2005 11:46:47 -0700
    To: Fedora-List <fedora-list@redhat.com>
    
    

    I'm running out of technical resources... I can't find an answer on
    google, and my O'Reilley's JavaScript book doesn't have the answer
    either... :-(

    I can set a background color of an element like this:

    this.style.backgroundColor='red';

    but how can I *remove* that style? Obviously I can change it to a
    different color, I want to actually remove the style setting altogether.

    this.style.removeProperty('backgroundColor');

    did not have the desired effect... no change, but no javascript error in
    the javascript console either (firefox 1.0.7)

    Any ideas on how to *remove" a style setting... or is there a "special"
    color like transparent?

    this.style.backgroundColor='transparent';

    Thanks for any ideas....

    Don Russell

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jim Higson: "Re: OT- javascript question removing style settings"

    Relevant Pages

    • Re: radio buttons dont align with labels in css column layout
      ... > I had a related suggestion to put the css and js in external files, ... >> You haven't assigned a background color to the body element, ... If I were you, though, I would seriously consider moving from JavaScript ...
      (comp.infosystems.www.authoring.stylesheets)
    • Re: can this CSS horizontal navmenu get centered somehow?
      ... > trying to make adjustments to my 'position fixed' nav menu, ... > this jumbled-mess can be viewed at: ... JavaScript for anything important, especially navigation. ... I know it's a test page, but you might want to set a background color. ...
      (comp.infosystems.www.authoring.stylesheets)
    • Re: Website Test
      ... > menus mean that visitors without javascript cannot use that specific menu ... > Hint: You don't know the ... > you don't know what the default background color of the browser of your ...
      (alt.html)
    • Re: to learn jQuery if already using prototype
      ... javascript book he's writing the second one - "Secrets ... Look at his slide, Richard: ... "Zero is equal to false. ...
      (comp.lang.javascript)
    • Re: Specify loading order of JPGs?
      ... I would agree if other designers we have worked with did not ... 'hit counter' code in your main page seems to require JavaScript to .. ... all your stats are from browsers with JavaScript *enabled*! ... BTW, you have not assigned a background color to your pages, and they ...
      (alt.html)