✩ 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:

Cipher Encoder

This is code I used to create different ciphers for my Secret Garden page. When you enter your text it encodes the letters according to a simple substitution cipher.

HTML code:

Translate Text to Cipher:

This is an example cipher you could use to encode text.

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.