|
|
|
JavaScript.com Latest JavaScripts
|
|
|
|
|
GetPosition 2:
|
| This code returns the position of a given element in a given container, relative to other elements of its type. Very useful for finding position indexes of list items, pictures, form items, and more.
|
|
Cookie.isEnabled:
|
| This function checks whether cookies are enabled in the browser. Returns true on success and false otherwise.
|
|
JSONVid: Pure JavaScript Video Player:
|
| Jacob Seidelin went on a mission to create a pure JavaScript video player that didn't use Flash. The result: JSONVid.
|
|
XMLWriter:
|
| This is a JavaScript class, based on .NET's XMLTextWriter. This is not a port, but a reduced and adapted version. It allows you to easily generate XML. The script is heavily commented for complete understanding.
|
|
HTML Block Scroller & Marquee:
|
| This small script will animate a series of blocks of HTML, scrolling them up, down, left or right dynamically and then pausing before starting the next scroll. The script will also pause on mouseover, and resume scrolling on mouseout. Since it scrolls HTML instead of just images, you can include just about anything that can be ordinarily placed in a static HTML document: links, images, graphics, tables, backgrounds, etc.
|
|
Alternate Colors:
|
| Most scripts that provide alternating rows of color are made for tables. This script can be used with any HTML tag, e.g., DIV, P, etc. Very easy to set-up and implement. Highlight that special section on your page without too much fuss.
|
|
Delete Confirmation:
|
| When writing many types of Web applications, there is sometimes a need to let a user delete something. It is generally a good practice, however, to have the user confirm their intentions. One method of doing this is by using a snippet of code to bring up a confirmation message. This snippet can be easily added to an existing or new script or application.
|
|
An Introduction to JavaScript Object Notation (JSON):
|
| JavaScript Object Notation, or JSON for short, is a lightweight data-interchange format which may prove to be a viable alternative to XML for IT developers. It's easy to read and write by people as well as for machines to parse and generate.
|
|
Check for Leap Year:
|
| This snippet will check whether a date belongs to a leap year. Easy to add to an existing script.
|
|
Virtual Keyboard Interface:
|
| This script is a reusable system for adding a graphical keyboard interface to text fields, password fields, and textareas so they can be filled with mouse only. It also adds easy access to special characters your existing keyboard may not otherwise have the ability to generate. Comes with Arabic, Belgian, Dutch, Dvorak, French, German, Greek, Hebrew, Hungarian, Italian, Lithuanian, Norwegian, Number Pad, Polish Programmers, Portuguese, Russian, Slovenian, Spanish (Spain), Turkish-F, Turkish-QWERTY, UK, US Standard and US International keyboard layouts, dynamically selectable. Add additional layouts is simple. Easily implemented on any Web site.
|
|
Mootools:
|
| This is a compact, modular, object-oriented JavaScript framework designed for the intermediate to advanced JavaScript developer. It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.
|
|
Advanced JavaScript Debugging Techniques:
|
| The purpose of this tutorial is to provide a list of advanced debugging techniques that are not easily found elsewhere on the web. We all worship at the altar of Firebug, but there are things that can go beyond a console.log().
|
|
Code Prettifier:
|
| This script displays syntax highlighting of source code snippets, making the posting of code in an HTML page easier to read. It works on a number of languages including C, Java, Python, Bash, SQL, HTML, XML, CSS, JavaScript, PHP, Ruby, Awk and Makefiles. Heavily commented. Easy to implement.
|
|
Change Background Colors:
|
| Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.
|
|
Learn How to Use and Get the Most out of Regular Expressions:
|
| This tutorial is quite unique because it not only explains the regular expression (regex) syntax, but also describes in detail how the regex engine actually goes about its work.
|
|
|
|