Hey all!
Here's the deal, I have two divs being animated. One is a background, which sets opacity at 80%, the other holds text and fades in over it. The problem is that IE seems to ignore the transparency of the div background color tag. FireFox has no problems. Here is the source:
.popOver
{
z-index: 2;
width:0px;
border: solid 1px #9e9e9e;
background-color: #000000;
overflow:hidden;
display:none;
}
.popPnl
{
z-index:2;
color:White;
font-family:Arial;
overflow:hidden;
display:none;
padding: 5px 5px 5px 5px;
} <asp:ImageButton ID="reg_ImgBut" runat="server" OnClientClick="return false;" ImageUrl="images/register.jpg"></asp:ImageButton>
<!-- popOver -->
<div id="linkBack" class="popOver">
<div style="float:right;opacity:0;filter:alpha(opacity=0);padding: 2px 1px 2px 1px;" id="btnCloseParent">
<asp:LinkButton id="btnClose" runat="server" OnClientClick="return false;" ToolTip="Close">X</asp:LinkButton>
</div>
</div>
<div ID="reg_pnl" class="popPnl">
Hey! Stop messing up IE!
</div>
<script type="text/javascript" language="javascript">
function Cover(bottom, top, ignoreSize) {
var location = Sys.UI.Control.getLocation(bottom);
top.style.position = 'absolute';
top.style.top = location.y + 'px';
top.style.left = location.x + 'px';
if (!ignoreSize) {
top.style.height = bottom.offsetHeight + 'px';
top.style.width = bottom.offsetWidth + 'px';
}
}
</script>
<atlasToolkit:AnimationExtender runat="server">
<atlasToolkit:AnimationProperties TargetControlID="reg_ImgBut">
<Animations>
<OnLoad>
<OpacityAction AnimationTarget="reg_pnl" Opacity="0" />
</OnLoad>
<OnMouseOver>
<Sequence>
<EnableAction Enabled="false" />
<ScriptAction Script="Cover($('reg_ImgBut'), $('linkBack'));" />
<StyleAction AnimationTarget="linkBack" Attribute="display" Value="block"/>
<Parallel AnimationTarget="linkBack" Duration=".3" Fps="25">
<Move Horizontal="0" Vertical="-500" />
<Resize Width="500" Height="400" />
<Color AnimationTarget="linkBack" StartValue="#ffffff" EndValue="#000000" Property="style" PropertyKey="backgroundColor" />
</Parallel>
<FadeOut AnimationTarget="linkBack" MinimumOpacity=".8" Duration=".2"/>
<ScriptAction Script="Cover($('linkBack'), $('reg_pnl'), true);" />
<StyleAction AnimationTarget="reg_pnl" Attribute="display" Value="inline"/>
<FadeIn AnimationTarget="reg_pnl" Duration=".2"/>
<StyleAction AnimationTarget="reg_pnl" Attribute="height" value="auto" />
<Parallel Duration=".35">
<FadeIn AnimationTarget="btnCloseParent" MaximumOpacity=".9" />
</Parallel>
</Sequence>
</OnMouseOver>
</Animations>
</atlasToolkit:AnimationProperties>
</atlasToolkit:AnimationExtender> Outside of this little issue, I've got to hand it to ATLAS. WTG Microsoft!