Disable the Submit Button
Sometimes it is a good idea to disable the submit button so that the user cannot make multiple submissions. This snippet will do the trick. Very easy to use.
Copy to Page
This snippet will copy text entered into a form field and place it directly on the Web page.
Blinking Textbox Effect v2
This script will place the cursor in a designated textbox, causing its background to blink a specified color for a pre-determined amount of seconds. This will highlight the textbox on the Web page in order to draw attention to it.
Auto Month
This pulldown menu will automatically adjust the range of months so that the current month is at the top. The remaining months are placed in order after the current month. The menu still functions with JavaScript turned-off.
Customize Dropdown Menu
Looking for an easy way to add Digg buttons and links to your Web pages? The instructions given on the Digg Web site can be a bit tedious. Use this generator instead, to make it easier. You can place it on your site for others to use also. The image file contains Digg buttons to put on your Web site or blog, which can also be customized for your site, using the included Photoshop file.
Worth your Weight in Gold
Does your self-worth appear low? Do you feel under-valued? Perhaps for specific reasons or a variance of them, this calculator will cheer you up! Extrapolate your weight and yearly earnings for an evaluation via properties of gold, and hypothetically a heart of gold for integration. The calc. also gives a home price for a lucid estimate when looking for an affordable client-side residence.
Email Obfuscator and Encoder
Email harvesting is a real problem nowadays; publishing an email address on a web page means exposing it to automated email collection softwares. Once it's been collected, there no way of getting rid of spam.
The best way to avoid this is to obfuscate and encode email addresses; this simple JavaScript does exactly that. It splits an address in six different parts, so that bots are not able to recognize it, and it also encode the @ symbol and the . (dot) using ASCII codes, just to make it harder for bots to decode it. Even if the email harvesting software can read JavaScript and put the different parts of the address together, it would obtain an useless text like this: my-email-address@my-domain-name.com instead of myaddress@mydomain.com.
The best way to avoid this is to obfuscate and encode email addresses; this simple JavaScript does exactly that. It splits an address in six different parts, so that bots are not able to recognize it, and it also encode the @ symbol and the . (dot) using ASCII codes, just to make it harder for bots to decode it. Even if the email harvesting software can read JavaScript and put the different parts of the address together, it would obtain an useless text like this: my-email-address@my-domain-name.com instead of myaddress@mydomain.com.
Automatic Breadcrumbs
This script will automatically build a "breadcrumb" navigational link to any page on your Web site. This allows your visitors to see exactly where they are on your Web site at an given time. Very easy to implement.
Autofill and Select Form Fields
When testing forms you don't need to keep filling in the different fields. Use this function to automatically fill-in input blocks and select values in the form for you. Very easy to use.
Auto-Complete
This is a custom object that uses an array assigned to an input tag. It will fire on the onkeyup event and read from the array and act accordingly. It is very simple to use.
Agree Before Posting
Sometimes you may need to make sure your visitors agree to specific terms before submitting their comments. This script will disable the input fields until they agree to your terms. Easily adaptable.
Adding Options 2
Add or change options on a form select menu. This script will also allow sub-group items, for additional selections.
Add to Favorites
This small script will launch the browser Favorites window to bookmark the current page. Works in Firefox and Internet Explorer.
Add Remove Options
Add or remove objects in a select list, using the DOM. This script was written to work with DOM Level 1 and DOM Level 2 capable browsers, with try/catch logic included for IE use.
Tab Content Script (v 2.0)
This is a versatile Tab Content script that lets you organize regular DIV contents on the page into a tab interface, with the desired content appearing when a tab is clicked on. A fully unobtrusive, CSS and HTML based script, it supports practical features such as default tab selected, persistence of the active tab (ie: when page is reloaded), a "slideshow" mode, ability to expand/contract arbitrary DIVs on the page at the same time, and more. Modifying the CSS tabs used as part of its interface to your own is now also much simpler compared to version 1. Now it really is the ultimate Tab Content script!

]
]
Choose language