follow your dreams image
  stack of cardboard boxes image     www.stuffnthings.com logo
A virtual storage closet of web stuff
Home Contact Us About Site map
Horse Stuff - box
Horse Stuff - box
RV Stuff - box
Fun Stuff - box
Fun Stuff - box
Tech Stuff - box
Art Stuff - box
    
Note: Google AdSense has made this website possible. Without it I could not afford the hosting fees. More information...

Valid CSS!

Tweaking the Catch game
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?

Site Map - About
Copyright 2004 - 2006 stuffnthingz.com