SlideShare a Scribd company logo
DHTML Filter
 Session 14
Objectives
   Filter.
   Transition.
   TextRange Object.
Filters
   A filter allows to define and apply visual effects to HTML
    web pages. Can easily apply rich multimedia style effects to
    any HTML content to make attractive and dynamic web
    pages.
   Some of the filter effects include blur, shadow, and
    glow, which can apply without using any external or
    multimedia tool.
   Can apply filters to almost all the elements of HTML except
    for the SELECT, OPTION, TR, THEAD, TBODY, and TFOOT
    elements.
   There are two types of filters: visual filter and transitions. A
    visual filter affects the appearance of the
    content, whereas, transitions determine how the content will
    be loaded on the page.
filter property
   Can apply filters to HTML elements by using the filter property of
    the style attribute. Filters are implemented in an HTML page by
    using CSS.
   There are two ways of specifying filters.
      First, the value of the filter property is a string that describes

        the filter. It starts with the progrid word, which is a program
        identifier and it identifies the filter as an ActiveX.
      Second, the filter name is directly specified without using the
        progrid code. Filters are treated as objects of the element.
   Syntax:
Style = “filter:progid:DXImageTransform.Microsoft.filtername(property)”;

   Example:
H1{ width:100%; filter:progid:DXImageTransform.Microsoft.glow(); }
filter property - Demo




Demo: S14_Filter.html
Visual filters
   You can specify filters for both static and dynamic web pages.
    Multiple filters can be applied for a single HTML element or a
    group of HTML elements.
   In the dynamic web pages, you specify filter in JavaScript code
    to highlight specific content on an occurrence of an event.
   There are some types of filter:
       Static visual effects: are widely used filters that apply a static effect such
        as a text with a glow effect or blur effect.
       Dynamic visual filters: implement basic interactivity in web pages. The
        effect of these filters becomes visible when the user generates an event
        that results in applying dynamic changes to the page.
       Disable element effect: You often use many images or icons to determine
        whether a particular button or link is accessible by the user. This results
        in more processing time to load images. However, using filters, you can
        use only a single image and change its visual appearance to determine
        whether it is accessible by the user.
Static filters: Chroma
   Static filters are visual filters that specify or modify only
    appearance of HTML content of a web page. They
    provide static effects to the text and images.
   The Chroma filter renders a particular color of the
    content as transparent.
   There are some properties of Chroma filter:
       Color: specifies or retrieves the color that needs to
        appear in transparent.
       Enabled: determines whether Chroma filter is enable.
Static filters: DropShadow
   The DropShadow filter renders a thick outline behind
    the content. This layout gives an effect of floating
    shadow in a particular direction.
   There are some properties of DropShadow filter:
       Color: specifies or retrieves the color that needs to appear in
        transparent.
       Enabled: determines whether DropShadow filter is enable.
       OffX: specifies or retrieves the offset value of shadow from the
        content along the x-axis.
       OffY: specifies or retrieves the offset value of shadow from the
        content along the y-axis.
Static filters: Shadow
   The Shadow filter provides the same effect as that of
    DropShadow filter, except for the floating illusion of
    the shadow.
   There are some properties of Shadow filter:
       Color: specifies or retrieves the color that needs to appear in
        transparent.
       Enabled: determines whether Shadow filter is enable.
       Direction: specifies or retrieves the direction of the shadow.
        The value of this value is in degrees.
       Strength: specifies or retrieves the area in which the effect of
        the filter extends. The value of this value is in pixels.
Static filters: Wave
   The Wave filter displays the content in in a wave-like effect
    in the browser. It creates an illusion of a wave-like motion
    being applied to the content.
   There are some properties of Shadow filter:
       Enabled: determines whether Wave filter is enable.
       Freq: specifies or retrieves the number of waves to be applied to
        the content by the filter.
       LighStrength: specifies or retrieves the light’s intensity difference
        between the crests and trenches of the waves.
       Phase: specifies or retrieves the offset at which the wave will
        begin.
       Strength: specifies or retrieves the area in which the effect of the
        filter extends. The value of this property is in pixels.
Static filters - Demo




Demo: S14_StaticFilter.html
Static filters: Alpha
       The Alpha specifies the opaque of the content..
       Properties of Alpha filter:
       Enabled: determines whether alpha filter is enable.
       FinishOpacity: specifies or retrieves the level of opacity at the gradient’s end.
       FinishX: specifies or retrieves the horizontal position, which is the location
        where the gradient end.
       FinishY: specifies or retrieves the vertical position, which is the location where
        the gradient end.
       StartX: specifies or retrieves the horizontal position, which is the location
        where the gradient starts.
       StartY: specifies or retrieves the vertical position, which is the location where
        the gradient starts.
       Opacity: specifies or retrieves the level of opacity at the starting of gradient.
       Style: specifies or retrieves the shape of the gradient. The possible values of
        this property include Uniform, Linear, Radial and Rectangular.
Static filters: BasicImage
   The BasicImage specifies the image direction, color
    and opacity of the content.
   There are some properties of BasicImage filter:
       Enabled: determines whether BasicImage filter is enable.
       GrayScale: specifies or retrieves the value that determines the average of
        RGB value applied to the content.
       Invert: specifies or retrieves the value that indicates whether the
        complement of the RGB applied to the content.
       Mask: specifies or retrieves whether the value of Maskcolor property is
        applied to the content appearing as transparent.
       MaskColor: specifies or retrieves the color that will cover the content
        appearing as transparent.
       Rotation: specifies or retrieves the value that determines whether any of
        the ninety-degree incremental rotations applied to the content.
       Opacity: specifies or retrieves the level of opacity applied to the content.
Static filters: Blur
   The Blur filter specifies the content such that
    look unclear.
   There are some properties of Blur filter:
       Enabled: determines whether Blur filter is enable.
       MakeShadow: specifies or retrieves the value, which indicates
        whether the content is converted to a shadow.
       PixelRadius: specifies or retrieves the radius of the region where
        the pixel, which is affected by the filter, is surrounded by the
        opaque content.
       ShadowOpacity: specifies or retrieves the level of opacity applied
        to the shadow.
Alpha-BasicImage-Blur filters - Demo




Demo: S14_Alpha_BasicImage_Blur.html
Procedural surface filters
   A procedural surface appears between the
    content of an element and the element’s
    background. It specifies RGB and transparency
    values for each pixel on the screen dynamically.
   There are two types of procedural surface
    filters:
        AlphaImageLoader filter
        Gradient filter
AlphaImageLoader filters
   AlphaImageLoader filter is a procedural surface filter.
    That allows displaying an image between the element’s
    background and content. The image always exists within
    the element’s boundaries.
   The properties of AlphaImageLoader filter:
       Enable: determines whether the AlphaImageLoader filter is
        enable.
       sizingMethod: specifies or retrieves the method to load an
        image within an element’s boundaries. The values are crop,
        image and scale.
       src: specifies the URL of an image that needs to be loaded
        within an element’s boundaries.
AlphaImageLoader filters - Demo




Demo: S14_Filter.html
Gradient filters
   Gradient filter renders a colored surface between the
    content and background of an element.
   The properties of Gradientfilter:
       Enable: determines whether the Gradient filter is enable.
       EndColor: specifies or retrieves the ultimate opaque color for
        the surface.
       EndColorStr: specifies or retrieves the ultimate color for the
        surface.
       GradientType: specifies or retrieves the direction of gradient.
       StartColor: specifies or retrieves the starting opaque color for
        the surface.
       EndColorStr: specifies or retrieves the starting color for the
        surface.
AlphaImageLoader filters - Demo




Demo: S14_Gradient.html
Transitions
   Transitions are dynamic filters that affect the
    loading of the content. They provide effects based on
    time, which allow you animate images. Transitions
    offer style effects to web pages, which allow you to
    create slide shows in web pages.
   Transitions can be specified in static and dynamic
    pages. They are:
       Nonevent transitions: provide nonchanging transitions
        along a time interval and are similar to static filters.
       Event-driven transitions: are those transitions, which
        are applied on an occurrence of an event.
       Complex transitions: refer to combing filters and
        transitions to create interactive and attractive visual effects.
Box and Circle transitions
 Iris filter provides an iris effect to disclose new content. The filter
  provides the box-in, box-out, circle-in, circle-out effects to display
  content dynamically.
 Syntax:
filter:progid:DXImageTransform.Microsoft.Iris(prop);
   Properties
        Duration: specifies or retrieves the period to complete the transition.
        Enable: determines whether the Iris filter is enable.
        IrisStyle: specifies or retrieves the sharp of the filter. The values are
         diamond, cross, plus, square and star.
        Motion: specifies or retrieves whether content is disclosed from the
         edges to center or from the center to edges. The values are in or out.
        Status: retrieves the condition of transition effect.
        Percent: specifies or retrieves the position in a transition.
   Methods: apply, play and stop.
Wipe transitions
       Wipe transition divides the existing content into strips that move in
        a direction to display the new content and finally disappears.
       In HTML pages, the Blinds filter allows to apply the wipe to
        disclose the content dynamically.
       Syntax:
filter:progid:DXImageTransform.Microsoft.BLinds(prop);
       Properties
        Bands: specifies or retrieves the number of bars or trips to divide the
         content at the time of transition.
        Enable: determines whether the Blinds filter is enable.
        Duration: specifies or retrieves the period to complete the transition.
        Direction: specifies or retrieves the direction of the transition movement
         (left, right, up and down).
        Status: retrieves the condition of transition effect.
        Percent: specifies or retrieves the position in a transition from where the
         capture to display a static filter output will take place.
Wipe transitions
       Wipe transition divides the existing content into strips that move in a
        direction to display the new content and finally disappears.
       In HTML pages, the Blinds filter allows to apply the wipe to disclose
        the content dynamically.
       Syntax:
filter:progid:DXImageTransform.Microsoft.BLinds(prop);
       Properties
        Bands: specifies or retrieves the number of bars or trips to divide the content
         at the time of transition.
        Enable: determines whether the Blinds filter is enable.
        Duration: specifies or retrieves the period to complete the transition.
        Direction: specifies or retrieves the direction of the transition movement
         (left, right, up and down).
        Status: retrieves the condition of transition effect.
        Percent: specifies or retrieves the position in a transition from where the
         capture to display a static filter output will take place.
AlphaImageLoader filters - Demo




Demo: S14_IrisTransition.html
transition - Demo




Demo: S14_Transitions.html
TextRange Object
   TextRange object is a feature of DHTML that provides text
    manipulation operations for the dynamic content such as searching
    and copying text. It allows you to select characters, words, and
    sentences from a web document.
   The uses of the TextRange object includes:
      Navigating through the text.
      Searching and replacing text.

      Copying and pasting text.

   There are two steps to create the TextRange object:
       Create a text to specify the beginning and ending locations to
        specify the desire range of text.
       Perform the required operations on the enclosed text to fulfill a
        specific task such as copying the text and pasting it at the desire
        location.
TextRange properties
   The CreateTextRange()method creates a TextRange
    object when you apply the method to a BODY, TEXTAREA, or
    BUTTON element. Another method namely, CreateRange()
    creates the object when a text is selected in the browser.
   After creating the object, you can manipulate text by using its
    properties and methods.
   Properties:
       boundingHeight: Gets the rectangle’s height in pixels, which
        surrounds the object.
       boundingWidth: Gets the rectangle’s width in pixels, which
        surrounds the object.
       htmlText: represents the HTML source.
       text: sets or gets the text within the specified range.
TextRange methods
   Methods:
       collapse(): shifts the current point of selection towards the
        starting or at the end of the text range.
       duplicate(): Creates a new replica of the object.
       findText(): finds the specified text and marks the beginning
        and end points of the range to include the found text.
       inRange: retrieves a value, which determines whether a range
        exists within another range.
       isEqual: retrieves a value, which determines whether the given
        range is identical to the current range.
       move: collapses the specified text range and shifts the blank
        range backward or forward.
       moveEnd: modifies the end location of the text range.
       moveStart: modifies the beginning location of the text range.
TextRange methods
   Methods:
       moveToElementText(): shifts the range such that the beginning
        and end locations include the text in the specified HTML element.
       parentElement(): returns the parent element for specified
        range.
       pastHTML(): replaces the text in the current text range by pasting
        the specified HTML text.
       select: selects the text identical to the text in the text range of
        the object.
       setEndPoint: specifies the end point of a text range according to
        the end point of another text range.
TextRange- Demo




Demo: S14_Textrange.html
Summary
   Filter and transition are features of DHTML that allow
    applying animation and multimedia effect.
   Most of these are similar to the transition by
    Powerpoint.
   TextRange object can access and change the text of
    the Web document.
   Filter object allows to define and apply visual effect
    to HTML Web pages
   There are two types filters: visual filters and
    transitions.

More Related Content

What's hot

Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
Omprakash Chauhan
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
Ankit Garg
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
Ummiya Mohammedi
 
Video display devices
Video display devicesVideo display devices
Video display devices
shalinikarunakaran1
 
Character attributes
Character attributesCharacter attributes
Character attributes
shalinikarunakaran1
 
Spline representations
Spline representationsSpline representations
Spline representations
Nikhil krishnan
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
PrathimaBaliga
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
Renita Santhmayora
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
Python Modules
Python ModulesPython Modules
Python Modules
Nitin Reddy Katkam
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
Tareq Hasan
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - Notes
Omprakash Chauhan
 
Java Networking
Java NetworkingJava Networking
Java Networking
Sunil OS
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
Google
 
Seed filling algorithm
Seed filling algorithmSeed filling algorithm
Seed filling algorithm
Mani Kanth
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMSkoolkampus
 
Hashing
HashingHashing
Hashing
Amar Jukuntla
 
Input devices in computer graphics
Input devices in computer graphicsInput devices in computer graphics
Input devices in computer graphics
Anu Garg
 

What's hot (20)

Line Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - NotesLine Drawing Algorithms - Computer Graphics - Notes
Line Drawing Algorithms - Computer Graphics - Notes
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
Character attributes
Character attributesCharacter attributes
Character attributes
 
Spline representations
Spline representationsSpline representations
Spline representations
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Computer graphics chapter 4
Computer graphics chapter 4Computer graphics chapter 4
Computer graphics chapter 4
 
Attributes of Output Primitives
Attributes of Output PrimitivesAttributes of Output Primitives
Attributes of Output Primitives
 
Unit 3
Unit 3Unit 3
Unit 3
 
Python Modules
Python ModulesPython Modules
Python Modules
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Polygons - Computer Graphics - Notes
Polygons - Computer Graphics - NotesPolygons - Computer Graphics - Notes
Polygons - Computer Graphics - Notes
 
Java Networking
Java NetworkingJava Networking
Java Networking
 
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
 
Seed filling algorithm
Seed filling algorithmSeed filling algorithm
Seed filling algorithm
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
 
Hashing
HashingHashing
Hashing
 
Input devices in computer graphics
Input devices in computer graphicsInput devices in computer graphics
Input devices in computer graphics
 

Viewers also liked

Dynamic HTML
Dynamic HTMLDynamic HTML
Dynamic HTML
Vinil Patel
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
Reem Alattas
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
Himanshu Kumar
 
INTRODUCTION TO DOM AND DOM TREE
INTRODUCTION TO DOM AND DOM TREEINTRODUCTION TO DOM AND DOM TREE
INTRODUCTION TO DOM AND DOM TREE
systematiclab
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
chomas kandar
 
introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5
FLYMAN TECHNOLOGY LIMITED
 
Introduction to the DOM
Introduction to the DOMIntroduction to the DOM
Introduction to the DOM
tharaa abu ashour
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
rahul kundu
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
Mindy McAdams
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
Deep Patel
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Modelchomas kandar
 
DOM Features You Didn’t Know Existed
DOM Features You Didn’t Know ExistedDOM Features You Didn’t Know Existed
DOM Features You Didn’t Know Existed
FITC
 
Dbms lab questions
Dbms lab questionsDbms lab questions
Dbms lab questions
Parthipan Parthi
 
DBMS Practical File
DBMS Practical FileDBMS Practical File
DBMS Practical File
Dushmanta Nath
 
Best sql plsql material
Best sql plsql materialBest sql plsql material
Best sql plsql material
pitchaiah yechuri
 
Java script ppt
Java script pptJava script ppt

Viewers also liked (20)

Dynamic HTML
Dynamic HTMLDynamic HTML
Dynamic HTML
 
Dynamic HTML Event Model
Dynamic HTML Event ModelDynamic HTML Event Model
Dynamic HTML Event Model
 
Dynamic HTML (DHTML)
Dynamic HTML (DHTML)Dynamic HTML (DHTML)
Dynamic HTML (DHTML)
 
INTRODUCTION TO DOM AND DOM TREE
INTRODUCTION TO DOM AND DOM TREEINTRODUCTION TO DOM AND DOM TREE
INTRODUCTION TO DOM AND DOM TREE
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5introduction to the document object model- Dom chapter5
introduction to the document object model- Dom chapter5
 
Introduction to the DOM
Introduction to the DOMIntroduction to the DOM
Introduction to the DOM
 
Document object model(dom)
Document object model(dom)Document object model(dom)
Document object model(dom)
 
Simple Data Binding
Simple Data BindingSimple Data Binding
Simple Data Binding
 
Dhtml
DhtmlDhtml
Dhtml
 
Dhtml
DhtmlDhtml
Dhtml
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
DHTML - Events & Buttons
DHTML - Events  & ButtonsDHTML - Events  & Buttons
DHTML - Events & Buttons
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
Php ppt
Php pptPhp ppt
Php ppt
 
DOM Features You Didn’t Know Existed
DOM Features You Didn’t Know ExistedDOM Features You Didn’t Know Existed
DOM Features You Didn’t Know Existed
 
Dbms lab questions
Dbms lab questionsDbms lab questions
Dbms lab questions
 
DBMS Practical File
DBMS Practical FileDBMS Practical File
DBMS Practical File
 
Best sql plsql material
Best sql plsql materialBest sql plsql material
Best sql plsql material
 
Java script ppt
Java script pptJava script ppt
Java script ppt
 

Similar to 14. session 14 dhtml filter

Personalization in webcenter portal
Personalization in webcenter portalPersonalization in webcenter portal
Personalization in webcenter portal
Vinay Kumar
 
Material Design Android
Material Design AndroidMaterial Design Android
Material Design Android
Samiullah Farooqui
 
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTHSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
AAFREEN SHAIKH
 
Introduction to directshow II
Introduction to directshow IIIntroduction to directshow II
Introduction to directshow II
Yoss Cohen
 
CSharp Advanced L05-Attributes+Reflection
CSharp Advanced L05-Attributes+ReflectionCSharp Advanced L05-Attributes+Reflection
CSharp Advanced L05-Attributes+Reflection
Mohammad Shaker
 
Ap Power Point Chpt4
Ap Power Point Chpt4Ap Power Point Chpt4
Ap Power Point Chpt4dplunkett
 
The amazing power of CSS
The amazing power of CSSThe amazing power of CSS
The amazing power of CSS
Pedro Duarte
 
Gradient effect for ie 7
Gradient effect for ie 7Gradient effect for ie 7
Gradient effect for ie 7
rccsaikat
 
Animation in android
Animation in androidAnimation in android
Animation in android
Jatin_123
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
Pankhuree Srivastava
 
Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1
LK394
 
Final year embedded projects in bangalore
Final year embedded projects in bangaloreFinal year embedded projects in bangalore
Final year embedded projects in bangalore
Ashok Kumar.k
 
Real-time Face Recognition & Detection Systems 1
Real-time Face Recognition & Detection Systems 1Real-time Face Recognition & Detection Systems 1
Real-time Face Recognition & Detection Systems 1Suvadip Shome
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
Rameswara Reddy
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)jahanullah
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)jahanullah
 
Static Keyword Static is a keyword in C++ used to give special chara.pdf
  Static Keyword Static is a keyword in C++ used to give special chara.pdf  Static Keyword Static is a keyword in C++ used to give special chara.pdf
Static Keyword Static is a keyword in C++ used to give special chara.pdf
KUNALHARCHANDANI1
 

Similar to 14. session 14 dhtml filter (20)

Personalization in webcenter portal
Personalization in webcenter portalPersonalization in webcenter portal
Personalization in webcenter portal
 
Material Design Android
Material Design AndroidMaterial Design Android
Material Design Android
 
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPTHSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
HSC INFORMATION TECHNOLOGY CHAPTER 3 ADVANCED JAVASCRIPT
 
Introduction to directshow II
Introduction to directshow IIIntroduction to directshow II
Introduction to directshow II
 
CSharp Advanced L05-Attributes+Reflection
CSharp Advanced L05-Attributes+ReflectionCSharp Advanced L05-Attributes+Reflection
CSharp Advanced L05-Attributes+Reflection
 
Ap Power Point Chpt4
Ap Power Point Chpt4Ap Power Point Chpt4
Ap Power Point Chpt4
 
The amazing power of CSS
The amazing power of CSSThe amazing power of CSS
The amazing power of CSS
 
Gradient effect for ie 7
Gradient effect for ie 7Gradient effect for ie 7
Gradient effect for ie 7
 
Animation in android
Animation in androidAnimation in android
Animation in android
 
Software Design Patterns
Software Design PatternsSoftware Design Patterns
Software Design Patterns
 
Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1Cble assignment powerpoint activity for moodle 1
Cble assignment powerpoint activity for moodle 1
 
XMPPart5
XMPPart5XMPPart5
XMPPart5
 
Final year embedded projects in bangalore
Final year embedded projects in bangaloreFinal year embedded projects in bangalore
Final year embedded projects in bangalore
 
Real-time Face Recognition & Detection Systems 1
Real-time Face Recognition & Detection Systems 1Real-time Face Recognition & Detection Systems 1
Real-time Face Recognition & Detection Systems 1
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)
 
C Sharp Jn (5)
C Sharp Jn (5)C Sharp Jn (5)
C Sharp Jn (5)
 
DS Unit 6.ppt
DS Unit 6.pptDS Unit 6.ppt
DS Unit 6.ppt
 
Ch07
Ch07Ch07
Ch07
 
Static Keyword Static is a keyword in C++ used to give special chara.pdf
  Static Keyword Static is a keyword in C++ used to give special chara.pdf  Static Keyword Static is a keyword in C++ used to give special chara.pdf
Static Keyword Static is a keyword in C++ used to give special chara.pdf
 

More from Phúc Đỗ

15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data bindingPhúc Đỗ
 
13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtmlPhúc Đỗ
 
12. session 12 java script objects
12. session 12   java script objects12. session 12   java script objects
12. session 12 java script objectsPhúc Đỗ
 
11. session 11 functions and objects
11. session 11   functions and objects11. session 11   functions and objects
11. session 11 functions and objectsPhúc Đỗ
 
10. session 10 loops and arrays
10. session 10   loops and arrays10. session 10   loops and arrays
10. session 10 loops and arraysPhúc Đỗ
 
09. session 9 operators and statements
09. session 9   operators and statements09. session 9   operators and statements
09. session 9 operators and statementsPhúc Đỗ
 
08. session 08 intoduction to javascript
08. session 08   intoduction to javascript08. session 08   intoduction to javascript
08. session 08 intoduction to javascriptPhúc Đỗ
 
07. session 07 adv css properties
07. session 07   adv css properties07. session 07   adv css properties
07. session 07 adv css propertiesPhúc Đỗ
 
06. session 06 css color_andlayoutpropeties
06. session 06   css color_andlayoutpropeties06. session 06   css color_andlayoutpropeties
06. session 06 css color_andlayoutpropetiesPhúc Đỗ
 
05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing cssPhúc Đỗ
 
04. session 04 working withformsandframes
04. session 04   working withformsandframes04. session 04   working withformsandframes
04. session 04 working withformsandframesPhúc Đỗ
 
03. session 03 using lists and tables
03. session 03   using lists and tables03. session 03   using lists and tables
03. session 03 using lists and tablesPhúc Đỗ
 
02. session 02 working with html elements
02. session 02   working with html elements02. session 02   working with html elements
02. session 02 working with html elementsPhúc Đỗ
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data bindingPhúc Đỗ
 
01. session 01 introduction to html
01. session 01   introduction to html01. session 01   introduction to html
01. session 01 introduction to htmlPhúc Đỗ
 

More from Phúc Đỗ (15)

15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
13. session 13 introduction to dhtml
13. session 13   introduction to dhtml13. session 13   introduction to dhtml
13. session 13 introduction to dhtml
 
12. session 12 java script objects
12. session 12   java script objects12. session 12   java script objects
12. session 12 java script objects
 
11. session 11 functions and objects
11. session 11   functions and objects11. session 11   functions and objects
11. session 11 functions and objects
 
10. session 10 loops and arrays
10. session 10   loops and arrays10. session 10   loops and arrays
10. session 10 loops and arrays
 
09. session 9 operators and statements
09. session 9   operators and statements09. session 9   operators and statements
09. session 9 operators and statements
 
08. session 08 intoduction to javascript
08. session 08   intoduction to javascript08. session 08   intoduction to javascript
08. session 08 intoduction to javascript
 
07. session 07 adv css properties
07. session 07   adv css properties07. session 07   adv css properties
07. session 07 adv css properties
 
06. session 06 css color_andlayoutpropeties
06. session 06   css color_andlayoutpropeties06. session 06   css color_andlayoutpropeties
06. session 06 css color_andlayoutpropeties
 
05. session 05 introducing css
05. session 05   introducing css05. session 05   introducing css
05. session 05 introducing css
 
04. session 04 working withformsandframes
04. session 04   working withformsandframes04. session 04   working withformsandframes
04. session 04 working withformsandframes
 
03. session 03 using lists and tables
03. session 03   using lists and tables03. session 03   using lists and tables
03. session 03 using lists and tables
 
02. session 02 working with html elements
02. session 02   working with html elements02. session 02   working with html elements
02. session 02 working with html elements
 
15. session 15 data binding
15. session 15   data binding15. session 15   data binding
15. session 15 data binding
 
01. session 01 introduction to html
01. session 01   introduction to html01. session 01   introduction to html
01. session 01 introduction to html
 

Recently uploaded

Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 

Recently uploaded (20)

Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 

14. session 14 dhtml filter

  • 2. Objectives  Filter.  Transition.  TextRange Object.
  • 3. Filters  A filter allows to define and apply visual effects to HTML web pages. Can easily apply rich multimedia style effects to any HTML content to make attractive and dynamic web pages.  Some of the filter effects include blur, shadow, and glow, which can apply without using any external or multimedia tool.  Can apply filters to almost all the elements of HTML except for the SELECT, OPTION, TR, THEAD, TBODY, and TFOOT elements.  There are two types of filters: visual filter and transitions. A visual filter affects the appearance of the content, whereas, transitions determine how the content will be loaded on the page.
  • 4. filter property  Can apply filters to HTML elements by using the filter property of the style attribute. Filters are implemented in an HTML page by using CSS.  There are two ways of specifying filters.  First, the value of the filter property is a string that describes the filter. It starts with the progrid word, which is a program identifier and it identifies the filter as an ActiveX.  Second, the filter name is directly specified without using the progrid code. Filters are treated as objects of the element.  Syntax: Style = “filter:progid:DXImageTransform.Microsoft.filtername(property)”;  Example: H1{ width:100%; filter:progid:DXImageTransform.Microsoft.glow(); }
  • 5. filter property - Demo Demo: S14_Filter.html
  • 6. Visual filters  You can specify filters for both static and dynamic web pages. Multiple filters can be applied for a single HTML element or a group of HTML elements.  In the dynamic web pages, you specify filter in JavaScript code to highlight specific content on an occurrence of an event.  There are some types of filter:  Static visual effects: are widely used filters that apply a static effect such as a text with a glow effect or blur effect.  Dynamic visual filters: implement basic interactivity in web pages. The effect of these filters becomes visible when the user generates an event that results in applying dynamic changes to the page.  Disable element effect: You often use many images or icons to determine whether a particular button or link is accessible by the user. This results in more processing time to load images. However, using filters, you can use only a single image and change its visual appearance to determine whether it is accessible by the user.
  • 7. Static filters: Chroma  Static filters are visual filters that specify or modify only appearance of HTML content of a web page. They provide static effects to the text and images.  The Chroma filter renders a particular color of the content as transparent.  There are some properties of Chroma filter:  Color: specifies or retrieves the color that needs to appear in transparent.  Enabled: determines whether Chroma filter is enable.
  • 8. Static filters: DropShadow  The DropShadow filter renders a thick outline behind the content. This layout gives an effect of floating shadow in a particular direction.  There are some properties of DropShadow filter:  Color: specifies or retrieves the color that needs to appear in transparent.  Enabled: determines whether DropShadow filter is enable.  OffX: specifies or retrieves the offset value of shadow from the content along the x-axis.  OffY: specifies or retrieves the offset value of shadow from the content along the y-axis.
  • 9. Static filters: Shadow  The Shadow filter provides the same effect as that of DropShadow filter, except for the floating illusion of the shadow.  There are some properties of Shadow filter:  Color: specifies or retrieves the color that needs to appear in transparent.  Enabled: determines whether Shadow filter is enable.  Direction: specifies or retrieves the direction of the shadow. The value of this value is in degrees.  Strength: specifies or retrieves the area in which the effect of the filter extends. The value of this value is in pixels.
  • 10. Static filters: Wave  The Wave filter displays the content in in a wave-like effect in the browser. It creates an illusion of a wave-like motion being applied to the content.  There are some properties of Shadow filter:  Enabled: determines whether Wave filter is enable.  Freq: specifies or retrieves the number of waves to be applied to the content by the filter.  LighStrength: specifies or retrieves the light’s intensity difference between the crests and trenches of the waves.  Phase: specifies or retrieves the offset at which the wave will begin.  Strength: specifies or retrieves the area in which the effect of the filter extends. The value of this property is in pixels.
  • 11. Static filters - Demo Demo: S14_StaticFilter.html
  • 12. Static filters: Alpha  The Alpha specifies the opaque of the content..  Properties of Alpha filter:  Enabled: determines whether alpha filter is enable.  FinishOpacity: specifies or retrieves the level of opacity at the gradient’s end.  FinishX: specifies or retrieves the horizontal position, which is the location where the gradient end.  FinishY: specifies or retrieves the vertical position, which is the location where the gradient end.  StartX: specifies or retrieves the horizontal position, which is the location where the gradient starts.  StartY: specifies or retrieves the vertical position, which is the location where the gradient starts.  Opacity: specifies or retrieves the level of opacity at the starting of gradient.  Style: specifies or retrieves the shape of the gradient. The possible values of this property include Uniform, Linear, Radial and Rectangular.
  • 13. Static filters: BasicImage  The BasicImage specifies the image direction, color and opacity of the content.  There are some properties of BasicImage filter:  Enabled: determines whether BasicImage filter is enable.  GrayScale: specifies or retrieves the value that determines the average of RGB value applied to the content.  Invert: specifies or retrieves the value that indicates whether the complement of the RGB applied to the content.  Mask: specifies or retrieves whether the value of Maskcolor property is applied to the content appearing as transparent.  MaskColor: specifies or retrieves the color that will cover the content appearing as transparent.  Rotation: specifies or retrieves the value that determines whether any of the ninety-degree incremental rotations applied to the content.  Opacity: specifies or retrieves the level of opacity applied to the content.
  • 14. Static filters: Blur  The Blur filter specifies the content such that look unclear.  There are some properties of Blur filter:  Enabled: determines whether Blur filter is enable.  MakeShadow: specifies or retrieves the value, which indicates whether the content is converted to a shadow.  PixelRadius: specifies or retrieves the radius of the region where the pixel, which is affected by the filter, is surrounded by the opaque content.  ShadowOpacity: specifies or retrieves the level of opacity applied to the shadow.
  • 15. Alpha-BasicImage-Blur filters - Demo Demo: S14_Alpha_BasicImage_Blur.html
  • 16. Procedural surface filters  A procedural surface appears between the content of an element and the element’s background. It specifies RGB and transparency values for each pixel on the screen dynamically.  There are two types of procedural surface filters:  AlphaImageLoader filter  Gradient filter
  • 17. AlphaImageLoader filters  AlphaImageLoader filter is a procedural surface filter. That allows displaying an image between the element’s background and content. The image always exists within the element’s boundaries.  The properties of AlphaImageLoader filter:  Enable: determines whether the AlphaImageLoader filter is enable.  sizingMethod: specifies or retrieves the method to load an image within an element’s boundaries. The values are crop, image and scale.  src: specifies the URL of an image that needs to be loaded within an element’s boundaries.
  • 18. AlphaImageLoader filters - Demo Demo: S14_Filter.html
  • 19. Gradient filters  Gradient filter renders a colored surface between the content and background of an element.  The properties of Gradientfilter:  Enable: determines whether the Gradient filter is enable.  EndColor: specifies or retrieves the ultimate opaque color for the surface.  EndColorStr: specifies or retrieves the ultimate color for the surface.  GradientType: specifies or retrieves the direction of gradient.  StartColor: specifies or retrieves the starting opaque color for the surface.  EndColorStr: specifies or retrieves the starting color for the surface.
  • 20. AlphaImageLoader filters - Demo Demo: S14_Gradient.html
  • 21. Transitions  Transitions are dynamic filters that affect the loading of the content. They provide effects based on time, which allow you animate images. Transitions offer style effects to web pages, which allow you to create slide shows in web pages.  Transitions can be specified in static and dynamic pages. They are:  Nonevent transitions: provide nonchanging transitions along a time interval and are similar to static filters.  Event-driven transitions: are those transitions, which are applied on an occurrence of an event.  Complex transitions: refer to combing filters and transitions to create interactive and attractive visual effects.
  • 22. Box and Circle transitions  Iris filter provides an iris effect to disclose new content. The filter provides the box-in, box-out, circle-in, circle-out effects to display content dynamically.  Syntax: filter:progid:DXImageTransform.Microsoft.Iris(prop);  Properties  Duration: specifies or retrieves the period to complete the transition.  Enable: determines whether the Iris filter is enable.  IrisStyle: specifies or retrieves the sharp of the filter. The values are diamond, cross, plus, square and star.  Motion: specifies or retrieves whether content is disclosed from the edges to center or from the center to edges. The values are in or out.  Status: retrieves the condition of transition effect.  Percent: specifies or retrieves the position in a transition.  Methods: apply, play and stop.
  • 23. Wipe transitions  Wipe transition divides the existing content into strips that move in a direction to display the new content and finally disappears.  In HTML pages, the Blinds filter allows to apply the wipe to disclose the content dynamically.  Syntax: filter:progid:DXImageTransform.Microsoft.BLinds(prop);  Properties  Bands: specifies or retrieves the number of bars or trips to divide the content at the time of transition.  Enable: determines whether the Blinds filter is enable.  Duration: specifies or retrieves the period to complete the transition.  Direction: specifies or retrieves the direction of the transition movement (left, right, up and down).  Status: retrieves the condition of transition effect.  Percent: specifies or retrieves the position in a transition from where the capture to display a static filter output will take place.
  • 24. Wipe transitions  Wipe transition divides the existing content into strips that move in a direction to display the new content and finally disappears.  In HTML pages, the Blinds filter allows to apply the wipe to disclose the content dynamically.  Syntax: filter:progid:DXImageTransform.Microsoft.BLinds(prop);  Properties  Bands: specifies or retrieves the number of bars or trips to divide the content at the time of transition.  Enable: determines whether the Blinds filter is enable.  Duration: specifies or retrieves the period to complete the transition.  Direction: specifies or retrieves the direction of the transition movement (left, right, up and down).  Status: retrieves the condition of transition effect.  Percent: specifies or retrieves the position in a transition from where the capture to display a static filter output will take place.
  • 25. AlphaImageLoader filters - Demo Demo: S14_IrisTransition.html
  • 26. transition - Demo Demo: S14_Transitions.html
  • 27. TextRange Object  TextRange object is a feature of DHTML that provides text manipulation operations for the dynamic content such as searching and copying text. It allows you to select characters, words, and sentences from a web document.  The uses of the TextRange object includes:  Navigating through the text.  Searching and replacing text.  Copying and pasting text.  There are two steps to create the TextRange object:  Create a text to specify the beginning and ending locations to specify the desire range of text.  Perform the required operations on the enclosed text to fulfill a specific task such as copying the text and pasting it at the desire location.
  • 28. TextRange properties  The CreateTextRange()method creates a TextRange object when you apply the method to a BODY, TEXTAREA, or BUTTON element. Another method namely, CreateRange() creates the object when a text is selected in the browser.  After creating the object, you can manipulate text by using its properties and methods.  Properties:  boundingHeight: Gets the rectangle’s height in pixels, which surrounds the object.  boundingWidth: Gets the rectangle’s width in pixels, which surrounds the object.  htmlText: represents the HTML source.  text: sets or gets the text within the specified range.
  • 29. TextRange methods  Methods:  collapse(): shifts the current point of selection towards the starting or at the end of the text range.  duplicate(): Creates a new replica of the object.  findText(): finds the specified text and marks the beginning and end points of the range to include the found text.  inRange: retrieves a value, which determines whether a range exists within another range.  isEqual: retrieves a value, which determines whether the given range is identical to the current range.  move: collapses the specified text range and shifts the blank range backward or forward.  moveEnd: modifies the end location of the text range.  moveStart: modifies the beginning location of the text range.
  • 30. TextRange methods  Methods:  moveToElementText(): shifts the range such that the beginning and end locations include the text in the specified HTML element.  parentElement(): returns the parent element for specified range.  pastHTML(): replaces the text in the current text range by pasting the specified HTML text.  select: selects the text identical to the text in the text range of the object.  setEndPoint: specifies the end point of a text range according to the end point of another text range.
  • 32. Summary  Filter and transition are features of DHTML that allow applying animation and multimedia effect.  Most of these are similar to the transition by Powerpoint.  TextRange object can access and change the text of the Web document.  Filter object allows to define and apply visual effect to HTML Web pages  There are two types filters: visual filters and transitions.