| Note: Google AdSense has made this website possible. Without it I could not afford the hosting fees. More information...
|
| Here is how I altered the Javascript to personalize the Catch game for Stuffnthingz.com
You have to change the various elements carefully. I tried to alter dimensions and had no luck making the game work. I just don't have time to trace through the logic of
the various dimensions.
First, I made a set of "stuff" images named, stuff1.gif through stuff5.gif. I kept them all to about 40 wide. I placed them in /images/catch, but you can change the directory as needed.
If you want more falling items, feel free to alter the Random number generator. it is in the function: ImageChange(). Just alter the 4 to be whatever you would like it to be, remembering that it is your number + 1 for the final falling images needed. ((Math.round(Math.random() * 4))+1
designate your "catching" graphic: (the bottom image you move to "catch" stuff.) by changing the Image Source for Div ID="MyDiv".
Another note. You can choose to keep the functions named as they are or change them to match your own game. I started to change the functions to have "stuff" in them, but stopped so this Javascript is a mix of function names but it works.
Use standard html to alter the table and font elements, but again be careful.
Have fun! |
|
What is Firefox?
|