| The graphic below is generated randomly by a Javascript
within this Web document. You can see it in action by refreshing or reloading
this page.
The Code:
The <head> Tag:
Copy the following code and paste it within the
<head> tags of your document. You must then type
in the names of your own graphics following the pattern established in
the example.
The <body> Tag:
Copy the following code and paste it, without any changes, in your document.
Make sure you place it exactly where you wish the random image to be displayed.
Think of this as if you were only inserting a single image.
This should be a fairly simple Javascript to implement.
Just make sure of a few things:
- Place all of the graphics within the same directory
as the Web page that contains the script.
- Be sure that you have made the necessary, and correct,
changes in the script.
If either of these are not done correctly, the script
will not function correctly.
Return to Random
Events menu. |