Ants | JavaScriptSource


Mike Hall Sep 9, 2000
As you move your mouse around the page a swarming army of ants scattered about the window will chase after it. (No wisecracks about buggy code now...) If an ant actually reaches the mouse cursor, we reposition it randomly around the edge of the window, and its chase starts again. The ant images are preloaded with a great image loading bar script, then the script begins. A great effect!

Ants Screenshot

To the right you will find a screenshot of the 'Ants' script in use rather than the usual live example. Based on the overwhelming number of sites (200+) that were calling the ants images from our site, we had to remove the live Ants example and the ant images from our web server. This will help decrease the stress on our server and ensure that the entire network is always accessible to you, the user.

However, you can still put this script on your site as usual. Just copy the ants source code in the box below and download the ants images zip below the screenshot. This zip file contains all the ant images.

Screenshot of Ants Script

Click here to download

The JavaScript Source: Games: Ants

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response


Is there any way to make this code work on Firefox in Windows 10? It used to work in earlier version of Windows.

Kevin Lock Feb 2, 2017

super script working great on ms-XP

brordorf May 30, 2016

sir; plz send me a simple coading pnly 2 pics slider show and photo highlight

mohammad shabeeb May 2, 2016

I tried to use the above code on kompozer (followed all the instructions) and It didn't work, I tried 3 times.

Mr Tumble Apr 21, 2016

didn't work. waste of time

salman Sep 10, 2015