Re: Change from gradient background on fly in an HTA
- From: "ekkehard.horner" <ekkehard.horner@xxxxxxxx>
- Date: Fri, 16 May 2008 23:30:03 +0200
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
.
- References:
- Prev by Date: Re: interact with user dialobbox user e passord
- Next by Date: Re: active directory question
- Previous by thread: Change from gradient background on fly in an HTA
- Index(es):
Relevant Pages
|
Loading