|
|
|
||||
|
Home - Tips & Tutorials - JavaScript Demos - Java Applet Demos - Resources - Contact |
|||||
|
Falling Flowers Adapted from Kurt Griggs' Autumn Leaves Script >>> I've taken Kurt's script, which uses autumn leaves and substituted them for flowers which I got from CoolArchive.com (note: link removed due to negative rating from McAfee SiteAdvisor). The flowers were a little large, so I used their link to edit the flowers at MyImager.com. I resized each flower to 50% and saved the flowers to my hard drive before uploading them to this site's files directory. This flower script adaptation would be super for a spring celebration page, a wedding page, or a little girl's page. When saving the images from MyImager, you need to delete the large number, which is their file number, and add .gif to the name before pressing the Save button. For example, one of the flowers is called nature010. MyImager added numbers after the name: nature010.6549393858939.gif. I deleted the file numbers and added gif to make sure the file was saved as a gif in my hard drive. You can have as many images as you want as long as the file sizes are small. Just adjust the Array number and ImageX lines. Make sure you change the flower names to what your images are called. Here's the script with flowers. Every variable you can change is highlighted in red type. Enter the script into the Insert HTML element, resize as small as possible, and place in the top left corner of your page. Be sure to upload the images! Special! If you like the flowers in this demo, you're welcome to grab them. Right-click or hover and click to save to your own hard drive. Be sure to credit CoolArchive.com for the flowers. These look best on a light-colored page. Another variation which I used to have on the main page uses cookies. Check it out here. If you have any problems using this script on your SiteBuilder page, then you may have to use a workaround. This comes from Stan Bisson and is used on many of the scripts I demo on this site which require an "onload" event handler. Copy-and-paste the following code into another Insert HTML element, resize, and place in the top left corner of your page. <img src="/tp.gif" width="1" height="1" onload="fall()"> |
<script language="JavaScript1.2"> //Autumn
leaves- by Kurt Grigg (kurt.grigg@virgin.net) //Pre-load
your image below! Amount=8;
//Smoothness depends on image file size, the smaller
the size the more you can use! if
(ns){ window.onload=fall |
||||
| Formerly hosted at www.geocities.com/ramblingtutor/ |
Home - Tips & Tutorials - JavaScript Demos - Java Demos - Resources - Contact Webpage graphics by Arride Graphics
|
||||