Layer 'srcFilter' Example : Layer « HTML « JavaScript DHTML

Layer 'srcFilter' Example

<script language="JavaScript">
function function1() {
    if ( == "visible") { = "hidden";
        myLayer.filters.revealTrans.transition = 2;
    } else { = "visible";
        myLayer.filters[0].revealTrans.transition = 3;
    var m = window.event.srcFilter;
<body bottommargin="150">
<div id="myLayer" style="position:absolute; visibility:visible; 
     Filter:revealTrans(duration=2, transition=3); left:92px; top:257px; width:100px; background-color:#FFFF99;"> 
    <img src="" width="99" height="75">
<input type="button" id="myButton" onClick="function1();" value="Play Transition"> 


Related examples in the same category

1.Monitors divisions (or layers) on dynamic Web pages (DHTML)
2.Hide and show layer
3. Layer Background Colors (W3C)
4.Setting Layer Backgrounds (W3C)
5.The layer while rolling over the link.
6.Accessing Layers with JavaScript
7.'layer' and 'ilayer' Tag Properties
8.Detecting Navigator and Internet Explorer
9. Adjusting Layer clip Properties (W3C)
10.Comparison of Layer and Clip Location Properties (W3C)
11. Testing Nested Layer Coordinate Systems (W3C)
12.Nested Layer Visibility Relationships (W3C)
13.Relationships Among zIndex Values (W3C)
14.Dragging a Layer (W3C)
15.Resizing a Layer (W3C)
16.Methods and Properties of the Layer Object
17.Layer seek