Spring after the Mouse
Introduction
Attaching a simgle object to follow the mouse around the screen is rather boring unless that object is quite sophisticated itself. To make things more interesting when we have a simple object following the mouse we can set things up so that we have multiple copies of the object following the mouse around and attach them together so that they interact with one another. For this script we will attach the objects together as if they are joined by springs. Because the objects are bouncing around the screen as they follow the moust around the script uses the browser window size and position functions to make sure that all of the objects stay visible on the page.
We'll begin by taking a look at how a series of 'O' spring after the mouse around the page.


