This small JavaScript file is used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major Web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible. It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML 1.0 documents, and is forward compatible, so it should work for years to come.

If you are involved with graphics creation or website design, it's important to understand how colors are seen on different browsers and different platforms. This script will show you all the "safe" colors, the ones that show up the same for all browsers and platforms. So, when you design a site or create an image, be sure to use the "browser-safe" colors! Don't you just love JavaScript?

This script adds a fixed percentage to an order total in a form. The percentage added is dependent on the option chosen from a menu. It was written to add sales tax (VAT) to an online ordering system but could be used to add shipping or any other fixed percentage amount. IE, NS6+

This script will save all of your form fields in a cookie. It includes all text fields, radio button selections, checkbox values, etc. When your visitor returns, all form fields are automatically repopulated with the same value that they entered on their last visit.

Use this script to allow visitors to jot down their comments on your site, other sites they have visited, or just their notes and ideas. They can even mail you (or anyone for that matter) their scratch pad.

Use this script to show visitors several interesting details about their screen - the screen width, screen height, and screen resolution of their browser window!! You might use this script to suggest that your visitors expand their browser to a larger size before accessing your site, etc.

Use this script to show visitors an interesting detail about their screen - the size of their browser window!! You might use this script to suggest that your visitors expand their browser to a larger size before accessing your site.

Web sites with heavy content sometimes use anchor links to navigate down the page. The problem with this type of navigation is that the user can become confused. The navigation suddenly disappeared, and the user can be unsure if they were sent to a new page or if the page just scrolled down. This script addresses this problem by animating to the anchor link. Active and visited states are also used to let the user know what content has already been read.

IE 5.5+ allows you to change the colors of scroll bars in a textarea tag or the browser window. Select the colors you want for the respective scroll bar attributes and see how they will look. Then, switch the "Show Source" to "Yes", re-submit, and the code will appear in a new window. Pretty neat!

This is undoubtedly the most comprehensive JavaScript search engine I have ever seen. You just put in your search term(s), select a few options, and then you have pages of search results! This script truly should be in a class of its own.

This JavaScript allows your visitor or customers to search the
web from your webpages. Simply, add your search terms, choose a
search engine and voila, results open in another window. Add
more engines or your own site search engine.

Automatically highlight words on a page when that page was reached by a search engine. If you search, for example, Google for some words, and then follow a link from the search results to a searchhi enabled page, the words you searched for will be highlighted on that page.

This script will sort options in a select box. The first select box is the criteria and the second is the select box to be sorted. In short, it takes the options and adds them to an array, then removes the options for the select box, sorts the array then addes the sorted array of options to the select box.

Use this script to easily change the order of options in a select box. You can see the order change as it happens in the "New Order" box. (The input can be hidden and used to change the order on the server side.)

This menu uses a select/option form component to create a drop-down navigation menu. When the user makes the selection, he will be taken directly to that URL. No additional input is required. Any number of menus can be added to a single Web page to create a fast and efficient navigation system.

This JavaScript function allows you to set the value of a select tag without having to know its position in the list. In the example, type in a letter of the alphabet and then click on the find button.

Transfer your server date/time to JavaScript without using Server Side Includes or renaming the page with a .php extension. This script lets you control the initial date/time used by your scripts and makes them independent of the user's local time. Uses JavaScript and PHP.

(Internet Explorer 5.0+ only) Allow your visitors to quickly and easily change Internet Explorer's default home page to your site's URL with the click of a button! Great for keeping your visitors coming back to your site! Other browsers will not see anything, and will not get any errors.

Set an image on the page when the cursor is over the link. The image remains set until the user puts their cursor on another link (i.e. no onMouseOut command). Then, the image is updated to the new one. Great!

California has earthquakes, and so does JavaScript1.2 ! This short JavaScript code will actually shake your browser window by using the moveBy() function, somewhat like a web browser earthquake! Not entirely useful, but neat anyways.

If you would like to have several sites sharing one 'contact us' page, you can! Each site can link to the same page (but each with a unique string) and the appropriate site's information will be highlighted yellow in the contact table. For example, If they clicked on the 'contact us' link on the real estate page, the table cell with the real estate contact email address will be highlighted yellow instead of white on the contact us page. Clever!

Showing and hiding a DIV using a link can be very useful when it's not necessary to always display information on the Web page. For example, this technique can be used for posting comments on a blog. That way you don't need to use a popup window or a separate page.

Recall your childhood with a JavaScript version of Simon Says. Click the buttons in the same order as Simon (the computer) does to advance to the next level. Each level gets increasingly difficult. See how far you can go.

This clean-looking menu is very simple to implement and can be placed anywhere on a page. Adding or deleting levels is easy to do. The menu is created without tables, using unordered lists and hidden layers.

This is a simple message encoding script. You can encode your message and send it to a friend. He can then decode it using this script. You can also use the script to encrypt your text files. Numbers and special characters are not allowed.

Add footnotes to your Web pages without all the aggravation. This script will pull the notes from your text, add links to them, and format them at the bottom of the page. It will also add a link back to the spot in the text where the note is referenced. Very easy to use.

Do you just not like the browser and computer "user agent" line that the web browsers use? This neat script (written by Netscape!) actually converts the user agent line into a more "user friendly" form, indicating the user's computer platform, browser version, and more! Check it out!

This script creates an internal site search engine for up to 8 web pages on your site, automatically. It indexes webpages and generates a complete file, including the HTML and the JavaScript code for the search. Just fill in the information for each page you wish to add, or even you can paste that page's HTML
source code in the textbox and let the script extract the text from it. When you are finished, you will have your own site search script, for free! And, we can even mail the generated code to you! Just upload it as is. Easy! :-)

This is another basic encryption/decryption program. The
difference is this script can shift characters based on user
input and you can use more than one key making your security
even more difficult to break.

A simple slider control made from div tags. It can be displayed vertical, horizontal or XY. Demo is a color picker, demonstrating interaction between two sets of sliders, adjusting HSL and RGB color parameters.

Create popup windows that will center on your screen or popup near your link without popping off the edge of the screen. Also shows how to create a clickable popup or a popup that displays when you hover over the link with your mouse. Cool!

Uses cookies to let a dropdown list remember which option was chosen when a user returns to the page. It comes in very handy if you have a page that is frequently accessed and users tend to repeatedly chose the same option from a list. Cool!

With this script your buttons can have up to four states: none, over, down, and up. This makes the button feel more real than a simple mouseover. In addition, the different button states are all part of the same background image.

(Internet Explorer Only) A one player game where the point is to direct the snake to the apples. For each apple you eat, you earn points and the snake grows longer. Don't run into your own tail or the walls and see how many points you can earn!

(Internet Explorer Only) A one player game where the point is to direct the snake to the apples. For each apple you eat, you earn points and the snake grows longer. Don't run into your own tail or the walls and see how many points you can earn! (09/09/2000)

Put some JavaScript-powered snow on your web site! Dozens of snowflakes carelessly drift back and forth as they float down the browser window. You can even adjust the speed that the snowflakes move. Definitely a cool effect.

One of the main problems with manipulating XML files is the compatibility issue across different browsers. The purpose of the SoftXMLLib Library is to solve the problem of creating different XMLHTTP and XMLDOM objects for different browsers. This library includes basic functions and properties like those already included in Microsoft.XMLDOM ActiveXObject.

Easy-to-implement script creates tables that allow the body to scroll while the column headers remain fixed in place. Clicking on any of the column headers will perform a quick client-side sorting on the data in the table.

Due to the different nature that Netscape and other browsers use a background sound, getting it to work for your visitors can be difficult - unless you use this script. It will determine which browser they have and print the background sound command correctly for that browser! Very cool!

The e-mail address is stored on the server in a disassembled form which is later re-assembled by your browser using Javascript. Spambots merely perform simple text searches for valid e-mail addresses and they will not be able to harvest any e-mail addresses from your webpage. For example: "aol.com" is stored in one place, "joe8625" in another, and "@" in yet another. Then, there is a paragraph of programming code that tells your internet browser to assemble the three parts into a clickable link.

Object detection is common in JavaScript. Browser irregularities mean that your code must sometimes contain branches for different browsers. Use this snippet to perform object detection once instead of every time you call addEvent.

Is it Standard or Daylight time? This script fills in the correct middle letter of the time zone designation so that either an "S" is shown for Standard, or a "D" for Daylight time. The first function of the script may be used independently if you just need to know in which segment of the year a given date/time is. Adjusted for the new 2007 time changes.

Displays trivia facts about any of the 50 states when selected from the pulldown menu. Facts include state capital, date admitted into the union, state flower, and state bird. The script could be modified to display details about products you sell, members in a club, etc. Cool!

Sticky Note is an attractive DHTML script that pops up at the
Sticky Note is an attractive DHTML script that pops up at the
center of the page to display anything of your choice. Users can
customize, how often the note should appear on the page, for how
long, and whether a fade-in effect should be accompanied.
Works in MSIE and Mozilla FireFox.

Provide your visitors with a method for toggling the text and background colors of your page or certain sections within it. Though simple, this script has a lot of potential and could be greatly expanded. Heavily commented.

Internet Explorer for Windows does not support the <abbr> element that should be used for proper markup of abbreviations. The solution is based on one simple fact: even though IE ignores the element itself, other elements nested in the <abbr> work fine. This script wraps the content of the <abbr> with <span>, set its title and class attribute and the <abbr> tag behaves like it should.

Changes the caption of the form's submit button while the form is being submitted. This helps eliminate the confusion that can sometimes occur when a form takes quite a while to be processed by the server.

Do you ever receive multiple copies of a single form submission? Do your visitors click the submit button over and over, hoping it will hurry up the process? Well, JavaScript can solve your problems! The script will prevent the visitor from submitting the form after the first submission. Basic field validation also included! Great!

A script that only allows the user to submit a form once. Compatible with Microsoft FrontPage's built-in validation methods, which other 'Submit Once' scripts are not. It spoofs FrontPage by dynamically re-writing the onSubmit handler in the user's browser.

This script will display the titles on your links in a very "sweet" manner. The look is customized by using CSS and is easily changed. Degrades very nicely. Additional modifications are available on Dustin's Web site.

This script and CSS combination allows you to define the dimensions, information richness, and appearance of your content objects for set ranges of screen sizes. A news site, for example, could have one layout and appearance for wide screens, one for medium-sized screens, and another for PDAs. Images could shrink or even disappear according to the screen size, columns could come and go as needed to maintain readability, and you can achieve a more efficient use of the available space for each screen size.

The DevEdge Archive, a strategic alliance formed by America Online and Sun Microsystems, Inc., is delivering iPlanet e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy

The Sun-Netscape Alliance, a strategic alliance formed by America Online and Sun Microsystems, Inc., is delivering iPlanet e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy

The DevEdge Archive, a strategic alliance formed by America Online and Sun Microsystems, Inc., is delivering iPlanet e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy

The DevEdge Archive, a strategic alliance formed by America Online and Sun Microsystems, Inc., is delivering iPlanet e-commerce software and enterprise solutions that enable companies to compete successfully in the Net Economy