Connecting Tech Pros Worldwide Forums | Help | Site Map

DxImageTransform Fade Transitions - HEIGHT problem

Harshal
Guest
 
Posts: n/a
#1: Oct 31 '05
Hello,

I have following html file

<html>
<head>
<script>
var flag = true;

function LoadNewImage()
{
mainDiv.filters[0].apply();

if (flag == true)
{
mainDiv.style.backgroundColor = "white";
flag = false;
}
else
{
mainDiv.style.backgroundColor = "black";
flag = true;
}

mainDiv.filters[0].play();
}
</script>
</head>
<body>
<div id="mainDiv"
style="FILTER:progid:DXImageTransform.Microsoft.Fa de(overlap=1.00);">&nbsp;
</div>
<input type="button" onclick="LoadNewImage()" id="id1" name="Fade
Start">
</body>
</html>

the transition 'fade' does not work here
but if i add "HEIGHT: 10px;" to the style of mainDiv, then the fade
effect works fine.

The browser i use is IE 6 on Win XP Pro.

Is this a bug or i am missing on something? Please comment.

Regards,
Harshal


VK
Guest
 
Posts: n/a
#2: Nov 1 '05

re: DxImageTransform Fade Transitions - HEIGHT problem



Harshal wrote:[color=blue]
> the transition 'fade' does not work here
> but if i add "HEIGHT: 10px;" to the style of mainDiv, then the fade
> effect works fine.
>
> The browser i use is IE 6 on Win XP Pro.
>
> Is this a bug or i am missing on something? Please comment.[/color]

You can apply Microsoft filters and transitions only to elements
*having layout*. As Microsoft defines it: "having layout" means to have
element's width and height specified. Usually they let you go with only
wigth or only height specified, but not without both of them. More
reading:
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/filters.asp>

Harshal
Guest
 
Posts: n/a
#3: Nov 3 '05

re: DxImageTransform Fade Transitions - HEIGHT problem


Thanks.

Closed Thread