COMET/SHOOTING STAR EFFECT
xml compliantThis script has been tested on and shown to work with the following browsers:
  • Internet Explorer version 7 and above
  • Google Chrome version 4 and above
  • Mozilla Firefox version 2 and above
  • Apple Safari version 5 and above
  • Opera version 9 and above (including Opera mobile)
  • Android Browser version 3 and above
20-Jun-2013: New onload event handler added.
19-Dec-2011: Updated for multiple simultaneous comets.
24-Aug-2011: Added option to select how often comets appear.
28-Feb-2008: First released.
STEP 1: Copy and paste the code below so that it sits between the <head> and </head> tags at the top of your web-page:



CLICK HERE to select the above script ready to paste it into your clipboard
STEP 2: If you wish, change the colours at the start of the script you just copied to be the colour of comet and its tail that you require.
THAT'S IT When your page loads, one (or more) comet or shooting star will randomly appear shooting across the screen, just like it is doing on this page. The effect is quite subtle (you have to be watching for it) and works best with a light coloured comet against a dark (or even a twinkling) background.

Copyright notice: All scripts are © copyright mf2fm.com. You can use them wherever and whenever you wish, however the copyright notice at the start of the script should remain intact and a link back to this page would be appreciated. The address for this page is: http://www.mf2fm.com/rv/dhtmlshootingstar.php.

This page has been viewed 69 times. It was last viewed on Fri 22 Nov, 2024 at 23:32