Clear Text Box When Clicking on It

ShareIf you have a text box on your webpage (eg – a search form) with text in it (eg – “Search…”), it adds an extra level of convenience for your user if the text box clears when the user clicks inside the box. This is achieved with some simple javascript:
<input onclick="this.value='';" name="Search" type="text" value="Search..." />
The crucial part is onclick=”this.value=”;” – [...]

Disabling Form Double-Submits

ShareHere is the simplest bit of javascript code that I found worked the best. Just add the following code to your submit button:
onclick="this.disabled=true,this.form.submit();"
The javascript is executed the first time someone clicks the submit button. The first bit of code ‘this.disabled=true‘ disables the button so it can’t be clicked again. The second bit of code ‘this.form.submit()‘ [...]

Disable Right Clicking and Image Saving

ShareAdd the following javascript to the header of your HTML page to disable right clicking. This prevents users from directly saving images from your website. It’s not foolproof by any means – users can still screen capture your web page or use a variety of other means to save your images but it’s one more [...]

Image Rotation Script

ShareThis is by far one of the simplest way to rotate through a folder of images. Script by Dan P. Benjamin of Automatic Labs (automaticlabs.com).

Down load this script [ rotate.txt ] then change the extension to .php
Drop script into the same folder where the images are.
Point image source to “http://www.yourdomain.com/yourimagefolder/rotate.php”. That’s it.

<img src=”http://howtocreateawebsite.biz/sitebuildit/rotate.php”>
An example for [...]

Free Email Subscription

Poll

21 Free Random Links

Have a new site and want to show off and get linked? Send us an email and we'll link it here for free.