Applying Filters and Transition in DHTML _ Future for You Network!

download Applying Filters and Transition in DHTML _ Future for You Network!

of 3

Transcript of Applying Filters and Transition in DHTML _ Future for You Network!

  • 7/28/2019 Applying Filters and Transition in DHTML _ Future for You Network!

    1/3

    5/17/13 Applying Filters and Transition in DHTML | Future for You Network!

    www.futureforyou.net/2011/11/applying-filters-and-transition-in.html

    0 C O M M E N T S

    Applying Filters and Transition in DHTMLD H T M L D H T M L S C R I P T I N G I N T E R N E T P R O G R A M M I N G

    FILTERS & TRANSITION!

    Filters and Transition are two

    features of DHTML that enable the

    programmer to achieve a great variety

    of effects, such as:

    1. Transitioning between pages

    with random dissolves and

    horizontal and vertical blinds

    2. Converting colored images to

    gray in response to a user

    action for disabling purpose

    3. Glowing some letters for

    emphasis

    4. Displaying text in three-dimensional appearance using drop shadow effect

    Among these two features (filters and transitions), applying filters will result in changes that are

    persistent, but transitions are temporary. Transitions allow a user to transfer from one page to another

    with a pleasant visual effect such as a random dissolve.

    Filters and Transitions are Microsoft Technologies available only in Windows-based versions of

    IE 5.5, and are not available in any other browsers. They can be applied to block-level elements such as

    div orp, and to in-line elements such as strong orem ifthe element has its height or width CSS

    properties set.

    Flip Filters: FlipV and FlipH:

    The flipv and fliph filters mirror text or images vertically

    and horizontally, respectively. Apply these filters to an element by

    setting its filterproperty of the style attribute to any one of these

    wo filter (flipv or fliph) or both to get the mirror effect. The coding is

    as follows:

    A Mirrored Text

    Fully Mirred

    Transparency with the Chroma Filter:

    Chroma filter is a filter which is applied to an

    image, to make a part of the image transparent to its

    background. This filter applies transparency effect to a part

    of the image having the color specified in the filter.

    Chroma effect can be applied to an element of a

    web page using the two properties of the chroma filter:

    colorand enabled. The color property specifies the color

    of the image for which we apply transparency effect and

    he property enabled specifies whether to apply the effect

    o the element or not. This effect can be applied to an

    image of a web page as follows:

    chromaImg.filters(chroma).color = blue;

    RECENT POPULAR LABEL

    Verse to Remember!

    Proverbs 21:31

    Total Pageviews

    31,525

    Blog Archive

    2013 (29)

    2012 (10)

    2011 (97)

    December(11)

    November(28)

    Storing and Retrieving Strings in C

    Reources for Preparing the Subject - COA

    Previous Year Question Paper on COA

    Frequently Asked Questions on PHP & Python

    Previous Year Question Paper on Open Source

    Software

    Do you know the Basics of PHP and Python?

    Developing Applications with Python

    Learning More on Operators in PHP

    Using Operators and Expressions in PHP

    Various Types of Scope of Variables in PHP

    Fundamentals of PHP Programming

    Twitter Facebook RSS Fe

    Search This Blog

    Search

    Home Computer Basics MS Office Programming Languages Web Programming Ope n Source

    http://2.bp.blogspot.com/-zQV6zDi9L5o/Trj22tXrLPI/AAAAAAAAAWA/n6aT9pS-5OY/s1600/Chroma.jpghttp://3.bp.blogspot.com/-1_uEjnOpTWI/Trj2s2haLoI/AAAAAAAAAV4/YNZRg6k7D3A/s1600/FLip.jpghttp://4.bp.blogspot.com/-X4O2La8oPZ0/Trj15G6UvyI/AAAAAAAAAVw/wGG9FNuRoJs/s1600/filters.jpghttp://4.bp.blogspot.com/-X4O2La8oPZ0/Trj15G6UvyI/AAAAAAAAAVw/wGG9FNuRoJs/s1600/filters.jpghttp://4.bp.blogspot.com/-X4O2La8oPZ0/Trj15G6UvyI/AAAAAAAAAVw/wGG9FNuRoJs/s1600/filters.jpghttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.htmlhttp://futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://2.bp.blogspot.com/-zQV6zDi9L5o/Trj22tXrLPI/AAAAAAAAAWA/n6aT9pS-5OY/s1600/Chroma.jpghttp://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://www.futureforyou.net/http://futureforyou.net/http://www.futureforyou.net/feeds/posts/defaulthttp://www.facebook.com/futureforyouhttp://twitter.com/futureforyouhttp://www.futureforyou.net/http://www.futureforyou.net/2013/02/fundamentals-of-php-programming.htmlhttp://www.futureforyou.net/2013/02/various-types-of-scope-of-variables-in.htmlhttp://www.futureforyou.net/2013/02/using-operators-and-expressions-in-php.htmlhttp://www.futureforyou.net/2013/02/learning-more-on-operators-in-php.htmlhttp://www.futureforyou.net/2013/03/developing-applications-with-python.htmlhttp://www.futureforyou.net/2013/03/do-you-know-basics-of-php-and-python.htmlhttp://www.futureforyou.net/2013/05/mayjune-2012-question-paper-on-open.htmlhttp://www.futureforyou.net/2013/05/frequently-asked-questions-on-php-python_6.htmlhttp://www.futureforyou.net/2013/05/previous-year-question-paper-on-coa.htmlhttp://www.futureforyou.net/2013/05/reources-for-preparing-subject-coa.htmlhttp://www.futureforyou.net/2011/11/storing-and-retrieving-strings-in-c.htmlhttp://www.futureforyou.net/2011_11_01_archive.htmlhttp://void%280%29/http://www.futureforyou.net/2011_12_01_archive.htmlhttp://void%280%29/http://www.futureforyou.net/search?updated-min=2011-01-01T00:00:00-08:00&updated-max=2012-01-01T00:00:00-08:00&max-results=50http://void%280%29/http://www.futureforyou.net/search?updated-min=2012-01-01T00:00:00-08:00&updated-max=2013-01-01T00:00:00-08:00&max-results=10http://void%280%29/http://www.futureforyou.net/search?updated-min=2013-01-01T00:00:00-08:00&updated-max=2014-01-01T00:00:00-08:00&max-results=29http://void%280%29/http://www.futureforyou.net/2011/11/applying-filters-and-transition-in.html#labelhttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.html#popularhttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.html#recenthttp://www.futureforyou.net/search/label/Internet%20Programminghttp://www.futureforyou.net/search/label/DHTML%20Scriptinghttp://www.futureforyou.net/search/label/DHTMLhttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.htmlhttp://2.bp.blogspot.com/-zQV6zDi9L5o/Trj22tXrLPI/AAAAAAAAAWA/n6aT9pS-5OY/s1600/Chroma.jpghttp://3.bp.blogspot.com/-1_uEjnOpTWI/Trj2s2haLoI/AAAAAAAAAV4/YNZRg6k7D3A/s1600/FLip.jpghttp://4.bp.blogspot.com/-X4O2La8oPZ0/Trj15G6UvyI/AAAAAAAAAVw/wGG9FNuRoJs/s1600/filters.jpghttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.html#comment-form
  • 7/28/2019 Applying Filters and Transition in DHTML _ Future for You Network!

    2/3

    5/17/13 Applying Filters and Transition in DHTML | Future for You Network!

    www.futureforyou.net/2011/11/applying-filters-and-transition-in.html

    chromaImg.filters(chroma) = true;

    In this example, if the picture named trans.gif has a portion with a color blue, then that part of

    he image will be made transparent so that the element at the back of the image will be visible through

    hat image.

    Mask Filter:

    Mask filter allows an element of a web page to be displayed with a solid background and a

    ransparent foreground. Mask filter has a property called color, which specifies the color of the solid

    background to the masked image or text. The foreground will have the transparency effect.

    Example for the code that applies mask effect to a text displayed on an image using

    element is as follows:

    Mask Filters

    This is a text displayed with the mask effect

    Adding Shadow to a Text:

    Shadow filter adds depth to your text in order to create a shadowing effect that gives a three-

    dimensional appearance to the text. To apply shadowing effect to some text in a

    web page, apply the shadow filter to the text with values assigned to its

    direction and colorproperties.

    The direction property of the shadow filter determines in which direction

    he shadow effect is applied this can be set to one of eight directions

    expressed in angular notation 0 (up), 45 (above-right), 90 (right), 135 (below-right), 180 (below), 225

    (below-right), 270 (left) and 315 (above-right). The color property specifies the color of the shadow of the

    ext.

    To get the shadowing effect fully, we need to set another style called padding. Increasing the

    padding value from 0 to 100 provides greater distance between the text and the border of the element,

    allowing the full effect to be displayed. The following is an example code for applying shadowing effect to

    a header element in a web page:

    A Heading with Shadow

    Creating Gradients with Alpha filter:

    Gradient is an effect that can

    be applied to an image to make it

    ransparent to its background in three

    different styles: Linear, CircularandTriangular. Linear gradient applies

    ransparency effect to an image

    gradually from one end to the other

    horizontally. Circular gradient gives the

    ransparency effect from the centre of

    he image as a circle which gradually

    fades away as it enlarges.

    Triangular gradient gives the

    ransparency effect in triangular form. A picture is considered as a rectangle formed using four triangles.

    Each triangular area has transparency effect which is very less at the top and gradually increases more

    owards bottom. This kind of effect can be applied with the help of three properties of the alpha filter.

    They are: Style, Opacity and FinishOpacity.

    Need for Software in Computers

    Organization of Digital Computer

    Evolution of Electronic Computers

    How are Computers classified?

    Computer and Its Characteristics

    Physical Layer and Media used in Networks

    Topologies in Computer Networks

    Data Flow in a Network

    ISO/OSI Model of Networking

    Network Standards and Standard

    Organizations

    Categories of Computer Network!

    Introduction to Computer Networks

    How Great Is Our GOD! - Don Moen

    Architecture of Servlet!

    Data Binding with Tabular Data Cotrol (TDC)

    Applying Filters and Transition in DHTML

    A Course on Internet Programming

    Introduction to XML

    E-Learning on Java Programming

    Success Story of Sanjay

    Introduction to Java Programming

    University Exam on Web Technology - Just

    Got Over!...

    Want to become a New Creation?

    Model Questions for PCD

    Model Question for C# AND .NET

    FRAMEWORK

    Managing Client information with Cookies

    Session Handling in ASP

    October(55)

    September(3)

    About Me

    David Livingston J

    A software professional turned

    academician. Is an assistant

    professor in computer science

    engineering, teaching egineering

    students in colleges affiliated to Anna University.

    Has expertise in client server programming,web

    programming and enterprise computing. Has been

    guiding students to real time projects. This is a

    platform through which he shares his knowledge

    gained over the years to benefit students who want

    http://www.futureforyou.net/2011_09_01_archive.htmlhttp://void%280%29/http://www.futureforyou.net/2011_10_01_archive.htmlhttp://void%280%29/http://www.futureforyou.net/2011/11/session-handling-in-asp.htmlhttp://www.futureforyou.net/2011/11/managing-client-information-with.htmlhttp://www.futureforyou.net/2011/11/model-question-for-c-and-net-framework.htmlhttp://www.futureforyou.net/2011/11/model-questions-for-principles-of.htmlhttp://www.futureforyou.net/2011/11/you-can-become-new-creation-today.htmlhttp://www.futureforyou.net/2011/11/year-2011-question-paper-on-web.htmlhttp://www.futureforyou.net/2011/11/introduction-to-java-programming.htmlhttp://www.futureforyou.net/2011/11/success-story-of-sanjay.htmlhttp://www.futureforyou.net/2011/11/e-learning-on-java-programming.htmlhttp://www.futureforyou.net/2011/11/introduction-to-xml.htmlhttp://www.futureforyou.net/2011/11/course-on-internet-programming.htmlhttp://www.futureforyou.net/2011/11/applying-filters-and-transition-in.htmlhttp://www.futureforyou.net/2011/11/data-binding-with-tabular-data-cotrol.htmlhttp://www.futureforyou.net/2011/11/architecture-of-servlet.htmlhttp://www.futureforyou.net/2011/11/persevering-worship-pr-tim-smith-on.htmlhttp://www.futureforyou.net/2011/11/introduction-to-computer-networks.htmlhttp://www.futureforyou.net/2011/11/categories-of-computer-network.htmlhttp://www.futureforyou.net/2011/11/network-standards-and-standard.htmlhttp://www.futureforyou.net/2011/11/isoosi-model-of-networking.htmlhttp://www.futureforyou.net/2011/11/data-flow-in-network.htmlhttp://www.futureforyou.net/2011/11/topologies-in-computer-networks.htmlhttp://www.futureforyou.net/2011/11/physical-layer-and-media-used-in.htmlhttp://www.futureforyou.net/2011/11/computer-and-its-characteristics.htmlhttp://www.futureforyou.net/2011/11/how-are-computers-classified.htmlhttp://www.futureforyou.net/2011/11/evolution-of-electronic-computers.htmlhttp://www.futureforyou.net/2011/11/organization-of-digital-computer.htmlhttp://www.futureforyou.net/2011/11/need-for-software-in-computers.htmlhttp://www.blogger.com/profile/05181752832923310849http://1.bp.blogspot.com/-AL1IxXGXWK4/Trj4jPbmeUI/AAAAAAAAAWY/7CLZHpMYfU8/s1600/Gradient.jpghttp://1.bp.blogspot.com/-I8jD81N4Qto/Trj3zTj-rvI/AAAAAAAAAWQ/ZJJv4db2vHM/s1600/Shadow.jpg
  • 7/28/2019 Applying Filters and Transition in DHTML _ Future for You Network!

    3/3

    5/17/13 Applying Filters and Transition in DHTML | Future for You Network!

    www.futureforyou.net/2011/11/applying-filters-and-transition-in.html

    Data Binding with Tabular Data Cot rol (TDC) A Course on Internet Programming

    Alpha filter can be applied to the div element, which acts as a container to an image in a web

    page. The style property determines in what style the opacity is applied: a value of0 applies uniform

    opacity, a value of1 applies a linear gradient, a value of2 applies a circular gradient and a value of3

    applies a rectangular gradient.

    The Opacity and FinishOpacity properties are both percentages that determine at what

    percentage the specified gradient starts and finishes, respectively. The following lines of code illustrate

    he application of this filter to an image placed on a div element of a web page:

    Creating Motion with Blur:

    The blur filter creates an illusion of motion by blurring text or images in a certain direction. It has

    hree properties: add, direction and strength, the values of which specify the attributes of the blurring

    effect. The add property, when set to tree adds a copy of the original image over the blurred image,

    creating a more clear blurring effect.

    The direction property determines in which direction the blur filter is applied. This is expressed

    in any one of the eight angular vales (0, 45, 90, 135, 180, 225, 270 and 315). The strength property

    determines how strong the blurring effect is. The following code implements such effects to a header lineplaced in a div element (block):

    This is a header with Blurred effect

    Enter your comment...

    Comment as: Google Account

    Publish Preview

    Links to this postCreate a Link

    Subscribe to: Post Comments (Atom)

    to update and grow.

    View m y complete profi le

    Future for You Network! 2011 FutureForYou Network. Supported by W3G Team and FutureForYou.in

    Leave a Reply

    http://futureforyou.in/http://www.w3graphix.com/http://www.futureforyou.net/2011/11/applying-filters-and-transition-in.html#http://www.futureforyou.net/http://www.blogger.com/profile/05181752832923310849http://www.futureforyou.net/feeds/389054968816156225/comments/defaulthttp://www.blogger.com/blog-this.ghttp://www.futureforyou.net/2011/11/course-on-internet-programming.htmlhttp://www.futureforyou.net/2011/11/data-binding-with-tabular-data-cotrol.html