✩ Coding Projects ✩

Falling Stars

This is the code I put on my page to generate the randomly falling stars in the background. You can change the text inside the p tags in the document.write section to anything you want.

HTML code:

CSS code:

Randomizing Page Elements

This code can be used to randomize an array of things (pun intended) from text to pictures to entire divs. It uses an array to create a numbered list of html code snipets that are mixed up, so that when it prints the first entry on the list it's a random element. If you pull on multiple code snipets in the array they will all be different.

HTML code:

Random Picture Table

This is an example of the randomizing code used to create a table of different randomly selected pictures.