Instructions:
- Copy and paste the sections of code (found below) where needed.
- There are two settings in the script that you can adjust:
- starnum - Number of stars to display. Less increases performance.
- 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' ];
-
|