Page Glossary / The JavaScript Source
This script collects all of the abbreviations, acronyms, and definitions on a page and builds a definition list of the terms, which is appended to a specified container. The script checks for duplicate terms and also alphabetizes the terms.
Page Organizer
Use JavaScript and CSS to hide/show elements on a page thus saving screen space.
Page Printer
By adding this code to your Web site, users can print out the current page by simply clicking a button.
Page Scroller
Placing the cursor on the page's up or down arrows located in the bottom right corner of the browser window will automatically scrolls the page. Cool!
Page Up For
JavaScript can even display how long your web page has been online. Just enter the date, the script does the calculations, and prints out the time. It has a very nice readout and looks very professional!
Page Variable
Not exactly the most used script, but this one allows you to reference the page name in a variable. Instead of yourdomain.com/index.html, you can use this script to create a variable that stores index.html for your use! You can use it with alerts, document.write, etc. Take a look!
Page Viewed Date
I think it's always interesting to see some information about the page itself. This JavaScript will write out when the page was viewed, according to the visitor's clock.
Page Viewer
Use this script to load Web pages inside an iframe. Easy to set-up. Everything is adjustable to fit your Web site.
Paginator
This script makes pagination possible on your Web site. It uses an array to display the items you want to show, perhaps a small store or news items. You can choose how many you want to display on a page. Easy to implement.
Panorama / The JavaScript Source
This script provides a panorama view of an image, without using Flash or Java. Scrolls to the left and to the right. Easy to implement.
Panoramic Image Viewer
Use this script to add life to your panoramic images. This JavaScript is built upon a modified version of the LGPL Cross Browser JavaScript Library.
Parse Text
Quickly and easily convert text into a JavaScript string. Neat!
Particle Field
Illustrates movement of stars (or snow) depending on the direction of the mouse. Awesome!
Pass Menu (in frames)
After the user selects an option in the pulldown menu in the left frame, JavaScript can pass that option's value into a text box in the right frame when the button is clicked. Cool!
Pass Multiple Values
Values selected from the drop-down box appear in the text area below. As more items are selected they are added to the list.
Pass Textbox (in frames)
Copies the text in a box in the left frame into a box in the right frame when the button is clicked. A clever way to pass values in frames.
Passing Arguments
JavaScript functions have a special property called arguments, which contains an array of input parameters. Using the 'length' property of an array, you can iterate through the array for each parameter. This enables you to develop functions that can change as their parameters do
Passing Values
Here is a clever way of 'unwrapping' the contents of a form when passed from one page to the next. This capability would be useful in many situations, such as passing the contents of a form to another page, retaining information about the current page for the rest of their visit, etc. Great!
Passing Values Source
Here is a clever way of 'unwrapping' the contents of a form when passed from one page to the next. This capability would be useful in many situations, such as passin the contents of a form to another page, retaining information about the current page for the rest of their visit, etc. Great!
Password Generator
Generate a random password with the ability to include special characters and password restrictions.
Password Protect
Use this script to protect online files. Users cannot cancel out of it. It can also be used with your browser's home page to control Internet access on your own computer.
Password Verifier
Keep your visitors from submitting their form until their "password" and "re-enter password" fields match, for verification purposes. They get an error message telling them to re-enter the passwords if they do not match.
Pathway Grabber
This script is an HTML page with a small form that can make a new window with the input (type="file") tag. Because it's made with JavaScript users have direct access to the value once it is selected. Now the script can pull the value back into the original form and the rest can be submitted to a php script for further processing.
Patriotic Fader
Put this red, white, and blue background fader script onto your webpage to add a eye-catching Patriotic effect
Pattern Finder
Enter four numbers in the boxes, and this script will attempt to find a pattern.
Peg
An interesting little JavaScript game where you try to leave only one peg by jumping one over another and removing the 'jumped' peg. Sound easy? See how well you can do!
Persistent Layer
Float a layer on the screen so that it stays in place while a user scrolls the page. It has an animation script that slides the layer into position. Netscape 6 compatible!
Personal Details Validation
Use this script with your forms to make sure all the fields are filled in. Any fields that are left empty, or are not properly filled in, will be highlighted in red. Fields that are filled in correctly will be properly formatted. Easy to customize.
Phone-In
Highlight the text on your Web page one character at a time. Subtle but effective.
Photo Album Script Generator
This program automatically generates HTML codes for a customized photo gallery. HTML developers, who do not have much time to write codes or want to use a simple personal photo gallery, can use it. For Microsoft Internet Explorer 5+, Netscape Navigator 6+, Opera 6+ and Mozilla 1.2+.
Photo Album Viewer
A clean and simple photo album viewer with Next and Back buttons for browsing through images.
Pi Machine
This code will calculate the surface area and volume of cones, spheres or cylinders of any dimensions as well as circle circumference and surface areas.
Pick Three Numbers
This is a great looking script to pick your 3 digit lottery numbers. Script is inside the tablw with gif as background image.
Picture Memory
Take your time and study the underwater picture very carefully. When you are ready, start the memory test. The game will ask you where you saw the pieces. See if you can get all 15 right! Not as easy as it sounds!
Picture Puzzle
The classic mix-up puzzle that uses any image you want. Your image is 'cut' into puzzle pieces and left to be scrambled then solved by your visitors. (This script uses Dan Steinman's Dynapi code.)
Platform Page
Do you maintain a different version of your site for Windows and another for Mac users? Or, when allowing your visitor to download items from your site, would you like to automatically redirect them to the appropriate software download page for their computer? This script does it all, and it's short too!
Please Wait Message
Use this little script to surround a complex function that takes some time to complete. It provides a "Please Wait" message while the function is calculating.
Plugin Page
If you maintain separate pages, one plugin enhanced, the other not, here's a simple way to send your visitors to the right page automatically. Besides being a very short script (it loads fast) you can modify the code to look for any plugin you want. Give it a try!
Plugins Alert
Because seeing a table of your plug-ins is cool and all, take a look at this script. First, the JavaScript counts how many plug-ins the user has installed. Then, it alerts the user and comments on the number of plug-ins. Pretty cool!
Pokemon
An interactive version of Pokemon which allows you to raise your very own Pikachu! Try it!
Pokemon Invaders
Try your luck as a pokemon protecting the world against an invading enemy squad.
Pop Over Form / The JavaScript Source
Use this script to create a form that will open on top of the existing page, using a hidden DIV. A default link is included to allow for JavaScript being turned off or unavailable.
Pop-Up Window
This script displays a pop-up window with text every time people visit your page. This is a very simple script. Anyone can do it. All you have to do is replace the words TYPE TEXT HERE with your desired text!
Pop-up Link with Description
This script will pop-up a description of the link. It is cross broswer compatible and supports HTML in the description. It also has the ability to be a hierarchial menu.
Popup Blocker Detection
Use this snippet to detect if the client browser is using a popup blocker. If a one is detected, the script can then perform a different action. The sample uses an alert box to inform the user whether a popup blocker is present or not.
Popup Blocker Detection 2
This is a simple, cross-browser method for testing for pop-up blockers. Most scripts test the return value of window.open and conclude that there is a blocker installed if the returned value resolves to false in a boolean statement. However, these scripts fail with browsers such as Opera (as of v9) that return a window object but disable it. This script properly handles this, as well as a null or undefined return type.
Popup Checkbox Navigation Menu
This script opens a small popup window containing a checkbox navigation menu. Great for saving space on your Web page!
Popup Div
This script will open a floating layer popup. The layer stays on top, allowing the user to work in the main window while still being able to view the popup. The popup window stays in the same place, even when the user scrolls down the page. It also works with image maps.
Popup Function
Use this JavaScript function to call as many popup windows on a page as you need. It uses the CSS class attribute. It also allows for browsers that have JavaScript turned-off.
Popup Links
Use this script to call popups from a link. Can be used more than once on a page. (Just don't drive your visitors crazy with useless popups!)
Popup Menu
This menu can be displayed anywhere on the page with a right-click of the mouse. The default contextmenu is disabled and replaced with a div.
Popup Page
JavaScript can open another window a specified number of seconds after the first page finishes loading. This popup page can function as an advertising window, some tips on navigating your site, what's new, and lots more. Nice!
Popup Picker
Select an item from the list and the selected value is passed to the form field of the original window, and the pop-up closes automatically. Useful!
Popup Window Generator / The JavaScript Source
Need to create a popup window? Use our code generator! Fill out the specifications of the popup window you would like to use, including the URL and the various options such as menubars, toolbars, scrollbars, etc, and click the generate button. Just add this generated code to your site, or even have us mail it to you!
Portable Menu
On your site, it's often useful to have a navigation menu for visitors to help them get around on your site. This navigation menu, however, is different. As the visitor scrolls up and down your site, the menu moves up and down with them! It's a portable menu! (The only concern when adding this to your site is to make sure you move the regular content on your site over enough that the portable menu won't cover it) Great!
Pre-Loading Message
Use this script to warn your visitors that your page is loading. Short but effective.
Preload Images
Ever wanted to get rid of the delay that happens when users put their cursor on a image while the 'onmouseover' image loads? Use JavaScript to preload your 'onmouseover' images and the delay is gone! Useful!
Preload Images & Rollover Generator
Would you rather not copy our example code and have to modify it by hand to suit your needs? Then give this preload & rollover script maker a try! Just fill out the information, and it will generate your code for you - no more modifications are necessary! And, we can even mail the generated code to you! Wow... :-)
Preload Page
Displays a loading message as the page, including images and sound elements, are loaded in the background. When the page finishes loading the screen is shown, similar to how Macromedia's Flash plugin works. Easy!
Prime Number
Enter a number and JavaScript can instantly tell you if it is a prime number or not. I wish I had this little gem to help me in my math classes!
Prime Number Searcher
This script will find and display all the prime numbers up to a user-determined number.
Prime Number Tester
Calculate whether or not a number is prime and break it into its prime factors. Also includes a loading bar for large numbers.
Print Line
This short script takes a line of text, and prints it on your page using a set of custom images, one for each letter. The images are provided for all alphanumeric characters, period, comma, exclamation sign, and apostrophe.
Print Selected Fields Only
Select only the data you want to print. This script will then print it, along with a header. The rest of the page will be ignored.
Progess Bar Textarea
A textarea script with a twist. This snippet adds a progress bar to the textarea to let you know how many characters you have left.
Protect Images
(4.0+ browsers) Keep visitors from stealing your site images by right-clicking and then selecting "Save Image As..." This script will disable the right click on all the images on your site. Not foolproof, but helpful!
Protected Link
This small script masks the URL in the status bar to hide the real link to that particular page.
Prototype Dollar Function
The dollar function is a simple way to grab an element quickly. It not only takes in strings, it takes objects too.
Prototype JavaScript Library
Prototype is a JavaScript framework that features a unique, easy-to-use toolkit for class-driven development. The standards-compliant code takes a lot of the burden associated with creating rich, highly interactive Web pages.
Pulldown Menu (Automatic)
This Javascript will display an ordinary-looking menu . Once a link is selected, the visitor is automatically taken to the website without hitting 'Go!' or anything. If you use this script, please leave a link to our site in the pulldown menu!
Pulldown Menu (Description)
If you have plenty of space on you webpage or just would like to use a more comprehensive menu list, then this script might suit you nicely. This script works very well and is also very visually appealing.
Pulldown Menu (Double)
If you have an 'archive' site, like The JavaScript Source, it might make more sense to provide archive-like navigation. The Visitors can choose your topic (or category, as is the case in TJS) from the first Pulldown Menu and then pick a link from the second Pulldown Menu. This is a very wonderful script.
Pulldown Menu (Popup)
After the user selects an option in the pulldown menu, the new page opens in a new window! This is useful when linking to sites not within your site when you do not want the user to leave your site. Your site will remain open in the other window so the visitor can come back to it when the are finished with the popup page. You can even control the size of the popup window, whether it has scrollbars, menubars, toolbars, etc.
Pullquotes / The JavaScript Source
This script will create a pullquote on a page, derived from a set of span's. Easy to use, and can be utilized more than once on a page, if desired. Styling is done by CSS.
packages
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
parseUri / The JavaScript Source
This function splits any well-formed URI into its parts (all are optional). All parts are split with a single regex using backreferences, and all groupings which don't contain complete URI parts are non-capturing.
partapp
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
partcore
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
partjava
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
partlang
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
partlc
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
partobj
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
preface
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
preface
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

