|
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
Reflecting with JavaScript
JavaScriptSearch The creator of Scrip.aculo.us Thomas Fuchs has unveiled a new technique, which creates a reflection of a picture on a webpage. The "special effect" is implemented using the Prototype and Script.aculo.us libraries. The technique was first described at Fuchs' blog at http://mir.aculo.us/ . An example is available at http://mir.aculo.us/stuff/reflector/reflector.html . To implement the Reflector, first include the Prototype and Script.aculo.us libraries in the document head: Then include the function: if(!element.complete) { var p = element.parentNode, n = element.nextSibling; (element.height*options.amount).times( function(line) { Call the new method, citing the image’s div id as the parameter
The reflection effect is ready!
|
Copyright © 1998 - 2018 DevStart, Inc. All Rights Reserved |