JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

Fun Games

Some games are just for fun (such as this noughts and crosses/tic tac toe script) while others can educate your visitors and be fun to play at the same time.

Learning Games

Stephen's JavaScript Blog

Follow the Mouse

Friday January 16, 2009
There is more than one way of animating things with JavaScript.

One way to animate something using JavaScript is to attach it to the mouse so that it follows the mouse around the screen. This script allows you to attach anything in your web page to a fixed offset from the mouse position so that it will follow the mouse around the screen.

Follow the Mouse

Fly in Ad

Thursday January 15, 2009
Internet marketers are always looking for animation JavaScripts like this one

Are you looking for a way to add advertising to your web page that will get your visitor's attention? With this JavaScript your ad flies into the page from the top left corner of the browser window and plants itself dead centre in the window. For your visitor to be able to see what is behind the ad they must then click on the hide link to make it fly off toward the bottom left corner of the window. Since they have to interact with the ad anyway they may just decide to take a closer look at what you have on offer.

Fly in Ad

Arrays

Wednesday January 14, 2009
You don't need to define separate fields for similar items in JavaScript, you can make them an array instead.

Arrays are the most commonly used of the types of object built into JavaScript. In this twelfth tutorial on "Modern JavaScript" we look at the difference between Objects and Arrays.

Related Image Match Game

Tuesday January 13, 2009
A somewhat different memory game where the images to be matched are different

The basic memory game where you match identical images to one another tests your memory but doesn't really teach you anything. If instead all the images are different but they still exist in pairs where each of the pairs have something in common even though they are not identical images means that you not only need to have a good memory but you also need to recognise what the relationships are. My sample game uses fifteen picture images and a matching set of fifteen images containing a word description of those pictures. The two sets of images can be anything at all though as long as you have something that matches the one set of images to the other.

Related Image Match Game

Discuss

Recent Blog Posts

Community Forum

Explore JavaScript

More from About.com

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.