S C R I P T E R L A T I V E
- Supported Javascript - |
---|
This site exists to provide high quality JavaScript code to meet many of the commonly expressed requirements of web developers.
The scripts are written with consideration to robustness, ease of installation and configuration. Where applicable, the code can be used in multiple instances in the same document. No script requires any editing of its supplied code.
The site's inception was encouraged largely by the inadequacies of other online JavaScript repositories with sponsorship-driven agendas and offering little or no support for often sub-standard code, usually from long-vanished authors. Programming forums are full of requests for voluntary help in respect of scripts "found" on such sites.
Conversely, whenever a satisfactory demonstration leads to a download of our code, it is imperative to us that it results in a successful installation on the intended website. To this end we undertake to provide a reasonable level of email-based support to anyone having the basic text editing skills required both to install scripts, and to specify relative file paths.
While the less complex scripts are entirely free, for the rest in recognition of the time and effort taken developing and documenting the code and any support that may have been rendered, we expect a gratuity of the user's choice via PayPal. Our receipt of a gratuity in respect of any script, will be understood to mean that the sender has judged the code to be suitable for purpose. This condition is reiterated in the documentation of the relevant scripts. We do not suggest any amount and no transaction takes place.
Anyone unable to agree with the above principle is advised to seek an alternative code source.
Should any long term abuse of our code come to light, we reserve the right to remind users by any available means.
For a further description of each script, click on its heading. To go straight to its demonstration page, double click.
---
Replaces most common accented characters typed into form fields, with their non-accented equivalent.
Often requested for use with email address fields.
[FREE]
Manage master-slave checkbox groups to check/uncheck/enable/disable multiple boxes simultaneously.
Multiple groups can be configured
A comprehensive solution to a common requirement
[FREE]
Prevents accidental form submission when the Enter key is pressed.
The Enter key just moves the focus to the next element.
Can be configured to skip elements that don't use text entry.
Does not focus Submit or Reset buttons.
A set of encapsulated functions to read and control all aspects of radio buttons and checkboxes.
[FREE]
Saves the content or state of form inputs either in HTML 5 localStorage if available or in a single cookie (subject to the cookie size restriction).
Values of form inputs at the time the form is submitted, are restored the next time the page is loaded.
Supports checkboxes, radio buttons, text fields, textareas, and select boxes of single or multiple option.
Data can be saved per session or persistently.
Often requested when a server side language is not available.
Very easy to install & configure.
[FREE]
Multiselect is a dependent dropdown controller that does not use a database. It is best suited for applications in which the option data will not need to be updated regularly.
The intuitive array storage system supports unlimited depth of menus.
[FREE]
The data generator features an intuitive option editor integrated into a working simulation of the script. As you enter options they become part of the simulation, allowing you to click them to specify the location of sub-options.
When all data is entered and displaying properly in the simulation, one click generates the corresponding XML data, HTML markup and JavaScript statements required. Just copy and paste and you're in business. No it's not a dream, we've really made it that easy.
There is no easier way to build a complex dependent-dropdown system.
This one is the answer to all linked listbox requirements.
A JavaScript FRONT END for user rating systems
Multiple Unique Preference Listboxes - Controls a set of listboxes for selecting order of preference.
As a selection is made in one box, that option is excluded from all the others.
[FREE]
Set a group of one or more select boxes to a uniform size when out of use, regaining their normal width when in use.
Conserves space on the page.
Appends dimensioned copies of form text fields and text area elements immediately after the original field.
Options include:
New fields can be named either the same as the original, or with a sequential numeric suffix appended.
Appended fields can also be removed, singly or all together.
[FREE]
The much-maligned status line scroller.
Scrolls a randomly selected message from a list, for a specified number of cycles.
Does not interfere with URL displays from hyperlinks in the same frame.
Can select randonly from a list of messages and display a final static message.
[FREE]
Scroll div content automatically, vertically and/or horizontally as applicable.
Scrolling is reciprocating (changes direction at the end of travel).
Scroll pauses when div is hovered. This can be disabled.
The user can change scroll direction just by moving a scrollbar in the required direction.
Optional self-configuring control buttons are available for changing direction and scroll toggling.
[FREE]
Scrolls two or more same-domain frames in synchronisation, when any one is moved by the user.
Scrolling is in proportion to the relative lengths of the involved documents, and works both horizontally and vertically as applicable.
Synchronised user-scrolling of groups of divs.
When the user scrolls any div in a configured group, the rest scroll by the same proportion of their own length.
Supports vertical and horizontal movement and multiple independent div groups.
This script scrolls a page horizontally and vertically just by placing the mouse cursor close to the relevant edge. This can be a great enhancement to your site's operation.
This script allows the mouse cursor to scroll a div in any scrollable direction just by placing the cursor close to the relevant edge. This can be a great enhancement to your site's operation, as you can see from it's use on this menu.
Use any image as a variable-speed scroll control for scrolling the content of divs, frames, iframes, textareas or even the current window.
Speed is controlled by cursor or finger position.
Each button can support 1 to 4 scroll directions. Where possible, enjoy simultaneous horizontal and vertical scrolling with independent speed control, all on one button.
Cursor-speed monitoring allows a fast-moving mouse cursor to pass through a button without operating it accidentally. On multi-directional buttons, this feature allows the cursor to finish a scroll movement then 'escape' from the neutral point without triggering further movement.
Also supports bi-axial scrollwheel scrolling, even for hidden overflow (no scrollbars), which is not normally possible.
For accessibility, buttons are keyboard-selectable and respond to cursor and Page Up/Page Down keys as appropriate.
Navigate to anchors with a decelerating scroll, in place of the default jump action.
Progressive decelerating scroll to anchors within scrollable divs, in place of the default jump action.
On refresh of a document, this script restores its previous vertical & horizontal scrolled positions (within a given browser session).
Can be used within iframes.
Within a given browser session, this script returns a scrollable div to its previous vertical & horizontal scrolled positions on refresh/reload.
Multiple divs can be restored.
Drag the entire document vertically and horizontally using the mouse.
Very useful for viewing large maps, charts, tables or images that are larger than the viewing area.
If the button is released during movement, the scrolling motion overruns (this can be inhibited).
Various startup options can be configured.
To allow normal interaction, the functionality can be toggled on/off by double clicking.
Also supports operation of the scrollwheel when scrollbars are hidden.
Meets two common needs associated with div scrolling:
The often-requested div-scrolling buttons. Can be used on their own or complementary to any other of our div-scrolling utilities. Configurable for vertical, horizontal or diagonal scrolling by fixed amount or by percentage.
A simple, reliable and versatile image pre-loader
[FREE]
A visual demonstration of this script is pointless.
Download Source Code and Documentation
When a configured image is clicked, this utility reads the cursor position relative to the top left corner of the image, then passes the data to any other script via a user-supplied function.
Configured images can be arranged either into a single group all calling the same user function, or into separate groups.
Returns accurate data even when an image is contained within a scrolled div.
[FREE]
Displays full size captioned images triggered from disjointed rollovers of thumbnail images or links.
Supports multiple displays in the same document.
Configurable to select either by hover or click.
Features support for stepping buttons and look-ahead image pre-loading.
Same-element or disjointed image map rollover image swapping.
Provides an extremely easily configured solution to setting-up rollover image swaps, that are triggered by hovering image map areas.
Swapping can take place either on the image placeholder hovered, or a separate image (Disjointed Rollover).
[FREE]
Hover any element to display an image enclosed in a floating div adjacent to the cursor, with optional title text.
Selective Image Preloading, Optimised Image Positioning, Shrink-To-Fit Resizing, Individual Div Styling.
Dual or Tri-State graphical rollover buttons that stay 'locked' when clicked, until the click of another button in the group.
Featuring
Make cookie handling as easy as it gets with these integrated functions.
Set, read, modify, refresh, delete and increment cookies, without the clutter of separate functions.
With this script module included in your document, cookie-related tasks become a breeze.
[FREE]
Contrary to what you may believe:
NOBODY needs a countdown timer, so we won't be writing one!
This script fades the background and foreground colour of links, buttons and other elements on hover.
Makes a smooth transition between any two RGB colour values.
Link fading can be triggered on focus by keyboard users.
Very easy, unobtrusive configuration.
This script highlights a hovered element, link or button in a specified group, by fading out the others.
This effect produces single-image rollovers.
Features optional 'locking' on click and presetting on load.
Selects a random URL from a supplied list for a specified link, each time the document loads.
Will not repeat the same URL consecutively (subject to cookie support).
Annunciates the url in the title bar on hover, along with a text description.
Supports multiple links each with their own URL list.
[FREE]
Easily configured, individually customisable popup tooltips that can contain any type of element, including other websites.
Can be entered by the mouse cursor to copy data, and when populated with links can act as inline menus.
Please Note: If you have sent us a gratuity via PayPal and we do not seem to have responded, please ensure:
These are very common mistakes so we have to point them out.
Thank You.
Feedback Form
Complete the form then press 'Send'