Re: Change from gradient background on fly in an HTA



XP schrieb:
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?


Sub solidColorOnTheFly()
With document.body
.style.filter = ""
.bgcolor = "#66594C"
End With
End Sub
.



Relevant Pages

  • Re: Help getting KDE setup to display random backgtound image
    ... A solid color? ... wheter that be solid or a gradient. ... How about setting up your own background program config in the KDE control ... command field, ...
    (Debian-User)
  • How to fill background of page with gradient
    ... I want to fill the entire background of a page with a gradient. ... I first filled with a solid color like this: ... next I replaced that with a gradient style like this: ... was the div tag. ...
    (microsoft.public.dotnet.framework.adonet)
  • How to fill background of page with gradient
    ... I want to fill the entire background of a page with a gradient. ... I first filled with a solid color like this: ... next I replaced that with a gradient style like this: ... was the div tag. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Help aligning two objects (PP 2003)
    ... I have two boxes on a slide. ... One is filled with a solid color. ... gradient of that color. ... I'd prefer to have only one bar, but since I can't control when the gradient ...
    (microsoft.public.powerpoint)
  • Is there a way to..
    ... Is there a way to skin the background of a Windows Form control so that ... it uses a gradient rather than a solid color? ... Ideal Science, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)

Loading