You are here:   Home > Scripts > Javascript Image Ripple
What's
New
Doll
Makers
Room
Makers
Puzzle
Makers
Roiworld Stardoll Smilies Links

Back to Scripts

Javascript, Image Ripple (Wave filter)



Requires Internet Explorer 5.5 or later to work
The DIV is located below, before applying image filters the image object requires its layout to be set.
We do that by setting its height and width properties (done inside the style tag).
Having the layout defined can also be done by setting the position attribute to absolute.
Or the layout can be defined by setting the property CONTENTEDITABLE in the div.

To create ripple effects on text and images you would use the wave filter

Wave takes 5 parameters
Add Indicates of the original source image is visible underneath the transformed or rippled image
LightStrength indicates the strength of the light source (creates shadows for the waves), 0 means no shadows are applied, 100 means dark shadows are applied.
Phase Indicates the start of the sine wave, a full cycle is 360 degrees
Strength The size of the waves, 5 means the height of the wave is 5 pixels high (end to end)
Freq Frequency of the wave, 9 means there will be nine distinct waves
Note: the drop shadow does NOT take into account transparency in images and renders them as blocks



Div text










DHTML Source



References:
MSDN - Wave filter




About     Privacy Policy     Hosting by Web Hosting Canada

Except where otherwise noted, this site is licensed under a Creative Commons License



contact us: elouai@gmail.com
©2003-2009 eLouai.com, All rights reserved