Okay, so...
Because I'm weird like that, when I want a HTML/Javascript code, I google it, and when I come across epic codes, I use it.... and I do save them onto a notepad for future use, so I am going to share them with you.
NOTE: I did not create these codes.
If you want to test these codes...