revealTrans filter ineffective

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SimonSiz007
    New Member
    • Jan 2008
    • 3

    revealTrans filter ineffective

    Expected behavior: Clicking a button dissolves an image (actually dissolves a SPANed region on the page in which an image is displayed). Clicking the button again reverses the effect.
    Thanks for any help on this, or maybe another way to accomplish the desired effect of dissolving an image onto or off of a page.

    By the way, filters only work in IE (4+), so don't bother trying it in any other browsers.
    Code:
    <body>
    <SCRIPT LANGUAGE="javascript">   
    function go() {
    Gigg.filters[0].Apply();
    
    if (Gigg.style.visibility == "visible")
    {
    Gigg.style.visibility = "hidden";
    Gigg.filters.revealTrans.transition=12;    
    }
    else
    {
    Gigg.style.visibility = "visible";
    Gigg.filters[0].transition=12;
    }
    Gigg.filters[0].Play();
    }
    </SCRIPT> 
            <INPUT onclick=go(); type=button value="Do function!">
            <SPAN 
    			id=Gigg 
    			style="FILTER: revealTrans(duration=2); 
                		VISIBILITY: visible; 
                		WIDTH: 155px; HEIGHT: 198px"> 
                <IMG src="my155x198.jpg">
    		</SPAN> 
    </body>
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Are you sure it doesn't work? It seems to work fine in IE7.

    Comment

    Working...