Get sample
- Sample image:

Introduction
The following script was written in Javascript and shows an image falling from the top of the screen and disappearing, by bouncing on the left corner.
Using the code
Copy the following Javascript code inside the <HEAD>...</HEAD> tags of a HTML file
You can change the following parameters:
fallImgname = "number1.gif" to the name of your image.
fallWait = 2 waiting time between execution.
fallXoffset = 15 horizontal position of the image.
Copy the following HTML code into the <BODY>...</BODY> tags of the same HTML file:
Save and display the file on your favourite browser and see the result
Please feel free to comment this code and suggest new implentations and ideas!
History
2007-02-10: First version
|