|
A little bit of JavaScript goes a long way and can really enhance the functionality of your site. We've created these easy to implement JavaScript snippets, free for you to use! Choose the code you want, review the implementation instructions, click the "select all" button, then use Ctrl + C to copy. Then simply paste the JavaScripts directly into your HTML source code where you want the JavaScript feature to appear. Back to previous page Save your visitors the hassle of need to move their mouse to their browser tool bar to click the back button
A simple JavaScript snippet that will display the current date in short format.
Highlight form elements Make it easier for people to copy code or text snippets by implementing form elements that can be highlighted at the click of a mouse button.
Bookmarking (Favorites) script This JavaScript is compatible with IE4+ and NS4+
Status bar link description Spice up your hyperlinks by adding descriptions in a browser status bar that will appear when a mouse cursor is placed over the link
Close window button Another simple script to make it easier for your visitors to close windows - great for popups
Frame busting JavaScript Don't want your pages caught in someone else's frameset? Add this snippet to your pages (body tag) so you can stand alone.
On mouseover alert window Pops a simple alert window when a mouse cursor is placed over a link. Use with caution as it can be highly annoying when use improperly.
No right mouse clicking This script can give your source code and images some basic protection.
Anti email harvester Email harvesters are crawling the Internet 24 hours a day, searching for unprotected addresses to be added to massive spam mailing lists and then sold. Help reduce the amount of spam you receive with this script.
Print page Prints the current page using the visitors' default printer settings.
Email Validator This script won't catch all invalid email email addresses, but it should intercept most. Script includes a sample form. Note that in the sample form, you'll need to change "urltoscript" to the processing script you are using.
No image toolbar "Image Toolbar" is a IE6+ feature that presents a toolbar to users when they move their mouse over images on your site. While it can be useful, it can also annoy! Disable it by adding this snippet of code between your <head> and </head> tags
Set site as homepage (IE only) This simple script will change a users IE home page setting to your site! Simply replace "http://www.thinkhost.com" with your own home page URL
Copy text to clipboard This script displays an alert box when text is selected on the page and copies the text to the clipboard ready for pasting.
Fixed background watermark image Allows you to have a non-tiling background image that remains static in the background as the user scrolls. Just replace "picture.gif" with your own image.
Popup generator by Eric King The popup will be activated by clicking on a link Directions: Complete the fields below, then copy the code that is generated:
Step 1: Paste the code below between the <head></head> sections of your page. Step 2: Paste the code below your page where you want the link. Our JavaScript snippets library is one of the many free resources you'll find provided on ThinkHost for our web hosting clients . Not a ThinkHost customer? We warmly invite you to review our web hosting offers - we would love to see you as one of our valued clients! Don't forget to use the special coupon code for free setup and free hosting!
|
|
|||
|
|
|||
|
|
|||
|
|