Spice Up Your Next Web Demo with Bats

I decided to add a little spice to a web demo that happens to fall on Halloween.  Thanks to Eric Grange over at DelphiTools, it was super easy.

I updated his script slightly, to allow control over when the bats appear (and how many there are).  You can link to my js file, or download it here.  To use it, follow these steps:

First – Include the script in your header.

<script src="http://static.twomile.com/bats.js"></script>

Then – Call makeBats() and give it the number of bats you want to appear.

new BatManager().makeBats(15);

That’s it!  Let me know what fun you have with it, and be sure to thank Eric for the original.