COMET/SHOOTING STAR
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
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, the 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.
No menu on the left? Click here for a full list of all the free DHTML and Javascript effects you could be using on your web-site!

Link directly to this page: http://www.mf2fm.com/rv/dhtmlshootingstar.php

This page viewed 1613 times. Last viewed Sat 4 Feb, 2012 at 07:11