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.
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>
Comment