Use your JavaScript Editor to open Blend.htm (in the Tutorial folder inside your JavaScript Editor folder) and examine the code.
To run the code click on the Show Internal Viewer button, or
Click here to open Blend.htm in the default browser.
Note: this script uses the blendTrans() filter, which is currently supported only by Internet Explorer.
Blending one image into another produces an efficient transition effect. To achieve it, the cpBlend() function is used (defined in the cpanim.js file). It accepts two parameters:
The ID of the image object, and
The URL to the image we are blending into.
Next |