Common Javascript Codes

Ever wanted to stop people from right clicking and saving your images? Or want a little message to thank your visitors on your site's status bar? Here's a few javascript codes I've compiled together so you don't have to go through the hassle of searching it all up.

The instructions of how to use the following are beneath each code. Please read them as they might have more than one step to installing the javascript functions.

Disable Right Clicking

Place the code in between the opening and closing head tags of your web page. The message can be change by editing it to whatever you want. Try it out by right-clicking.

Make us your homepage

This script works as a simple link which will allow your vistor to make your website their homepage. It works as a basic link, so you can use it whereever you can use a link. Also, you can format the link style as much as you want ;).
Status Bar Message

Insert into the body tags of your web page. This is set in type-writer mode, and is faster to load than other forms of status bar messages.

Block IP Addresses

Insert this between the head tags of your web page. The IP addresses can be added by separating it with a comma and putting it within speech marks. The page blocked people are directed to can be changed to our own customized page if you wish.

Digital Clock

Insert this between your body tags wherever you want to display the clock. Colors can be changed to suit your web layout (color: black;). This displays the viewer's current time.