JavaScript tabifier

Share
Converts your HTML into a dynamic tabbed interface.
Does not require you to set up a list of links, or anchors for the tabs.
Plug and play: no need to know JavaScript, just make a few simple changes to your HTML.
Use CSS to customize the appearance of the tabs.
Gracefully degrades [...]

Browser Detection and Redirection Script

ShareUse this script to redirect Internet Explorer users to a different location on your site or to a another site all together.
Simply replace “URL of the redirection page” with a URL of your choice.
<script language=’Javascript’ type=’text/Javascript’>
if ((navigator.appName==”Microsoft Internet Explorer”) || (navigator.appName==”Netscape”))
{
if (navigator.appName==”Microsoft Internet Explorer”)
window.location = “URL of the redirection page”;
else window.location = “URL [...]

Script, Show or Hide

ShareEither embed the following code or save to a file and link to it in your HTML.
/* */ function showLogos() { var showbox = document.getElementsByTagName("DIV"); for(var i=0;i<showbox.length;i++) { if(showbox[i].className == 'show') showbox[i].style.display = 'block'; } saveCookie("showbanners",1); } function hideLogos() { var showbox = document.getElementsByTagName("DIV"); for(var i=0;i<showbox.length;i++) { if(showbox[i].className == 'show') showbox[i].style.display = 'none'; } saveCookie("showbanners",0); }
Configure your ON button with this.
<a href="javascript:" onclick="showLogos();return false;">
Configure your OFF button with this.
<a href="javascript:" onclick="hideLogos();return false;" >
Wrap your object around a DIV like this.
<div class="show">
Follow this link below to see script in action.

Turn-your-cookies-on Script

ShareWhen loaded, this script informs your site visitors to turn on their cookies.
<script type="text/javascript"> <!-- /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Chris :: http://www.freewebs.com/javascript_1/ */ if (navigator.cookieEnabled == 0) { alert("You need to enable cookies for this site to load properly!"); } --> </script>

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 [...]

Stop Page From Opening In A Frame

ShareIf you want to make sure your website is not opened in a frame from some other website, put this JavaScript in the Head of your page:
<script type="text/javascript"> if (top.location != self.location) { top.location.href = self.location.href; } </script>

Hide Email Addresses from Spammers

ShareWant to have an email address on your webpage but don’t want the bots to harvest it for their spam lists? Try this technique.
Put this JavaScript in the Head of your page:
<script type="text/javascript"> function contact(domain,user) { window.location.href = "mailto:" + user + "@" + domain; } </script>
Then use this as your email link:
<a href="javascript:contact('example.com','name');">Contact Us</a>
If you only use one domain name for all your email addresses on the page, then you can [...]

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.