Change from gradient background on fly in an HTA



In an HTA I have the following CSS which initially sets up a gradient
background like so:

body
{
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,
StartColorStr='#66594C', endColorStr='#69999C');
}

I wanted to be able for the user to change the background to a solid color
on the fly, but the following fails if the gradient is loaded:

document.body.bgcolor = myColor

How can I over ride the gradient and change background colors on the fly?




.



Relevant Pages

  • Re: Web Page Sizes and Absolute Positioning
    ... MVP FrontPage ... Murray and P@tty Ayers for all your help. ... Also, in the css text, do you add anything other than the (body { ... allows gradient colours. ...
    (microsoft.public.frontpage.programming)
  • Re: Web Page Sizes and Absolute Positioning
    ... last post really helped a lot with explaining how to accomplish the task. ... Also, in the css text, do you add anything other than the (body { ... allows gradient colours. ... MVP FrontPage ...
    (microsoft.public.frontpage.programming)
  • Re: Web Page Sizes and Absolute Positioning
    ... difficulty in accomplishing this. ... Also, in the css text, do you add anything other than the (body { ... A gradient background is easy to do, but it does require using CSS to ... MVP FrontPage ...
    (microsoft.public.frontpage.programming)
  • Re: Web Page Sizes and Absolute Positioning
    ... A gradient background is easy to do, but it does require using CSS to ... To make a gradient that starts at one color, ... MVP FrontPage ... you can use CSS to specify that the tag have ...
    (microsoft.public.frontpage.programming)
  • Re: Web Page Sizes and Absolute Positioning
    ... difficulty in accomplishing this. ... Also, in the css text, do you add anything other than the (body { ... allows gradient colours. ... MVP FrontPage ...
    (microsoft.public.frontpage.programming)