Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change from gradient background on fly in an HTA

172 views
Skip to first unread message

XP

unread,
May 16, 2008, 4:46:01 PM5/16/08
to
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?


ekkehard.horner

unread,
May 16, 2008, 5:30:03 PM5/16/08
to
XP schrieb:

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

0 new messages