JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

Fireworks

1. Introduction and Sample

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Obtain the Script Add to Your Page

Celebrate on your web site with a fireworks display. This script works in Internet Explorer, Netscape 4+, and Opera 7+ and probably other browsers as well.

The fireworks script displays exploding fireworks in front of the page content by creating a whole lot of very small coloured dots on your screen that fly apart in a realistic fashion and which gradually change colour as they go. No images are required for this script as it actually places separate objects into the page for each dot which is displayed by setting the background colour of each object.

There are fireworks going off on this web page (or at least there will be once the page finishes loading). This illustrates the basic effect generated by the fireworks script although not with the best appearance given the white background on this page. The effect actually looks better on a darker background.

If this is the effect that you want to add to your page then the next step is to obtain the script.

Explore JavaScript

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.