onclick CSS change

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cuperman

    onclick CSS change

    Hi All,

    I have two buttons on my web page that need to print the content with
    or without images.

    I want to use CSS to determine what is and isnt printed:

    How can I change which print.css is loaded depending on which button is
    clicked? Or how can I add a new line into my existing CSS: img
    {display:none;}

    Thanks,
    Mark

  • Danny

    #2
    Re: onclick CSS change


    Several ways, the simplest is possible just addressing the LINK element
    loading the .css file, <link id="CSSFILE" href="" rel="stylesheet "
    type="text/css"> ..
    document.getEle mentById('CSSFI LE').href='YOUR FILENAMEHERE.cs s'; upon some
    event.

    Danny


    On Sun, 19 Jun 2005 07:45:36 -0700, Cuperman <mark@liquidjel ly.co.uk>
    wrote:
    [color=blue]
    > Hi All,
    >
    > I have two buttons on my web page that need to print the content with
    > or without images.
    >
    > I want to use CSS to determine what is and isnt printed:
    >
    > How can I change which print.css is loaded depending on which button is
    > clicked? Or how can I add a new line into my existing CSS: img
    > {display:none;}
    >
    > Thanks,
    > Mark
    >[/color]



    --
    Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

    Comment

    Working...