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
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
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.
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