Download JavaScript Code Examples, Tutorials, Reference

Provide thousands of free JavaScript code examples, DHTML, HTML JavaScript Tutorials, Reference and Help. JavaScriptBank.com is the best JavaScript resources




Over 2000+ free Javascript
at JavaScriptBank.com Website
Instructions:
  • Copy and paste the sections of code (found below) where needed.

  • There are two settings in the script that you can adjust:
    1. starnum - Number of stars to display. Less increases performance.
    2. starcolors - Array of arbitrary colors to use for the stars.
      When the stars are "created", the script randomly chooses a color from this list.
      You can use Hex color codes (ex: #FFFFFF) or the HTML color name.
      There must be at least one entry in the array. Seperate multiple entries with a comma.
      Example array list: var starcolors=[ '#dddddd' , '#000099' , 'forestgreen' , '#2222aa' , 'darkyellow' ];

  •