Gradient not working on HTAs in windows 8

I have an HTA that works and displays fine in Windows 7.  The HTA uses a gradient background to display the background color.  When I launch the same HTA in Windows 8, it seems to ignore the gradient and just display the background in white.  The HTA still works but the background is not correct.  Was something done to either IE10 or the MSHTA to ignore the gradient backgrounds in Windows 8?

--Tracy

October 10th, 2012 6:18pm

we are using the DXImageTransform.Microsoft.Gradient gradient for the HTA.  Has this been removed with IE10 or the MSHTA.exe?

--Tracy

Free Windows Admin Tool Kit Click here and download it now
October 10th, 2012 6:35pm

Should be compatibility issue. Contact the device for more information.
October 12th, 2012 12:54pm

How do I contact the device.  The HTA runs fine in every version of windows except Windows 8 without modification.  How do i change the compatibility in Windows 8 so that the gradiant works?

--Tracy

Free Windows Admin Tool Kit Click here and download it now
October 12th, 2012 5:13pm

I know this is a year old, but that answer was horrible.  Tracy even followed up asking what you possibly mean and you never cleared it up.  This is the first link that came up when I searched for the exact same issue.
August 31st, 2013 7:48am

This thread is quite old but I had the same question and wanted an answer on how to make this work.  This was the first topic to pop up in my Google search.  After doing a little more digging here is what I was able to come up with.  I've tested it in Windows 7 and Windows 8.  Seems to work fine in both.

<html>
<head>
<title>Gradient Example</title>
<meta http-equiv="x-ua-compatible" content="IE=edge" />
<HTA:APPLICATION
  APPLICATIONNAME="Gradient Example"
  ID="GradientExample"/>
</head>
<script language="VBScript">

</script>

<body STYLE="background-image: linear-gradient(to right, #000000 0%, #0000FF 100%);
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#000000', EndColorStr='#0000FF');
height: 100%;
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
font: 14 pt arial;
color: white;">

Is this cool or what?

</body>
</html>

  • Edited by calokieme 17 hours 14 minutes ago
Free Windows Admin Tool Kit Click here and download it now
December 29th, 2013 1:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics