| Javascript: lake |
| Written by Andreas Berger | ||||||||||||||||||||||||||||||||||||||||||||||||
| Saturday, 19 April 2008 07:48 | ||||||||||||||||||||||||||||||||||||||||||||||||
bretteleben.de JavaScript Lake - Updated 20081207!The JavaScript "lake" results from my attempt to replace a - used with a former version of my private homepage - Java Applet from David Griffith with JavaScript. Display:The result is not exactly what i wanted to achieve and does not reach the original, but it offers at least similar functionality. One may ripple the lower part of a picture, mirror the upper part of the image about a virtual waterline, underlay a second picture to shimmer through the water or overlay the picture with a - partial transparent - picture. Functionality:To simulate a waved surface, the affected part of the image is divided in slices with a height of 1 pixel. This is done, using the css feature clip:rect, which leaves visible only a certain part of a div-container. Installation and Configuration:The integration into the web page and the configuration of the parameters is illustrated in detail on the following four sample pages: Demo:Sample (displayed within an iframe):
Browser-compatibility: The JavaScript is till now tested as follows:
LicenseThe script is licensed under the GNU Public License (www.gnu.org/copyleft/gpl.html). update Version: 20081207Version 20081207 MiscellaneousI am happy about everybody who gives me a link back to www.bretteleben.de on his website, this way helping me to popularize the script. The JavaScript "lake" is till now listed in different JavaScript - resources, including the largest - as far as i know - JavaScript resource: HotScripts. DownloadThe ZIP-archive contains a demo-page. By downloading it you agree to the terms of the GNU Public License. |
||||||||||||||||||||||||||||||||||||||||||||||||
| Last Updated on Saturday, 14 February 2009 09:56 | ||||||||||||||||||||||||||||||||||||||||||||||||



Internet Explorer
Firefox
Opera
Safari


To have the script working properly with a DTD-declaration you will have to wait a week or so - its in the pipeline :)
Meanwhile I sent you a mail with a quick and dirty rewritten file.
Greets
Andreas
Is there a DOCTYPE which will both validate correctly, and allow the "Lake" effect to be used at the same time?
Regards,
Brian
www.brianwatsonphoto.co.uk
The scripts are originally all scripted in Quirks-Mode. The panoramascript is allready rewritten, the slideshow I updated yesterday. They both work fine with X-HTML 1.1 Transitional.
At the moment I am working on a new Joomla-Plugin but the other javascripts will get updated soon (at least one of them next week).
greets
Andreas
PS.: If you do not want to wait, the problem usually is an omitted "px" when setting width, height, or position. This is no problem in Quirksmode but produces an error when using a DTD-declaration. :)
PPS.: Thanks a lot for your testing on OS-X!
This one works:
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"
Hope this helps (it took a long time to find what the problem was!).
Best wishes,
Brian
www.brianwatsonphoto.co.uk
- Safari 3.1.2
- Firefox 3.0.3
- Opera 9.52
Thanks (with a link from my site to yours),
Brian
www.brianwatsonphoto.co.uk