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

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » HTML » Layer 
Layer 'srcFilter' Example

    
<html>
<head>
<script language="JavaScript">
function function1() {
myLayer.filters[0].Apply();
    if (myLayer.style.visibility == "visible") {
        myLayer.style.visibility = "hidden";
        myLayer.filters.revealTrans.transition = 2;
    else {
        myLayer.style.visibility = "visible";
        myLayer.filters[0].revealTrans.transition = 3;
    }
    myLayer.filters[0].Play();
    var m = window.event.srcFilter;
    alert(m)
}
</script>
</head>
<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="http://www.java2s.com/style/logo.png" width="99" height="75">
</div>
<input type="button" id="myButton" onClick="function1();" value="Play Transition"
</body>
</html>

    
      
      
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
w___w_w__._j__av___a2s_._c___om__ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.