DHTML
  Home arrow DHTML arrow Page 6 - Filters And Transitions In IE5
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
DHTML

Filters And Transitions In IE5
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 9
    2000-10-31


    Table of Contents:
  • Filters And Transitions In IE5
  • Filtering Out The Good Stuff
  • A Little Transparency
  • Shadow Boxing
  • Putting On Your Mask
  • Scripting Your Filters
  • Into The Blender
  • Revealing The Secret
  • Zig And Zag

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Filters And Transitions In IE5 - Scripting Your Filters
    ( Page 6 of 9 )

    It's also possible to access all these filters via JavaScript through the special Javascript array called "filters". For example, if you had the following piece of HTML,

    <img id="face" style="filter: wave(strength=0, freq=1)" src="face.gif"
    border="0">
    
    you could access the "wave" filter attached to the image in any of the following ways:
    document.all.face.filters[0]
    document.all.face.filters["wave"]
    document.all.face.filters.wave
    document.all.face.filters.item(0)
    document.all.face.filters.item("wave")
    
    It's also possible to retrieve and manipulate filter attributes through Javascript, as the following example will demonstrate:
    <html>
    <head>
    <basefont face=Arial>
    <script language="Javascript">
    
    var dir;
    
    function wave(dir)
    {
    if (dir == "+")
    {
    document.all.face.filter.item(0).strength += 10;
    }
    else if (dir == "-")
    {
    document.all.face.filters["wave"].strength -= 10;
    }
    
    }
    
    </script>
    </head>
    
    <body>
    
    <img id="face" style="filter: wave(strength=0, freq=1)" src="face.gif"
    border="0">
    <br>
    <a href="javascript: wave('+');">Increase wave strength</a>
    <br>
    <a href="javascript: wave('-');">Decrease wave strength</a>
    </body>
    </html>
    


    This article copyright Melonfire 2000. All rights reserved.

     
     
    >>> More DHTML Articles          >>> More By icarus, (c) Melonfire
     

       

    DHTML ARTICLES

    - Rough Guide To The DOM (part 2)
    - Rough Guide To The DOM (part 1)
    - Filters And Transitions In IE5
    - Understanding Embedded Fonts




    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek