Welcome to our little treasure grove stuffed with scripted gems, developed and designed to utilize the power of Javascript to its full potential, while at the time degrading nicely and errorfree on machines where Javascript has been restricted or just disabled. Has it ever been different? It may seem the interest of nerds and other rabble, but Javascript is known to run mission critical functions at computers controlling power plants, and it won‘t be long until you add an onmouseover event handler to your correspondence. The list of Reserved Javascript Words is a clear illustration of the mutual approach of human language and computer code. We ‘re talking to the machine in a vocabulary somewhere between our own and the bits and bytes, and why not? Computers are made by humans.
Development of online technologies is expected to remain violent for the forseeable future, but it seems that since its introduction Javascript has kept the closest connection between the source and the experience, the author and the user. Applets, Flash, vectors all attempt to bring the content to life, but kill it in the process. Creating such programs requires very specific knowledge and tools, software that costs money, and search engine bots can‘t or won‘t index them!
The web to be accessible, must be a text-based web. There is a place for binary files, plugins and multicultimedia, but in the end the communication is between humans. Human code is readable code. Javascript is usually slower in operation than most alternative options, but this is easy to forgive and understand. It is downloaded as uncompressed as this very text, and all interpretation of the code statements, the setting of the actual switches, is left to the final stage. Once set, the possibilities of interaction with the page, the browser and the user are endless.
Javascript brings life to existing content, to raw text and HTML that every entity—from braille reader to search engine bot—has access to, without taking anything away. It is the natural extension. However, as all good things, it can be abused and misused, and mistakes are easily misunderstood, and sometimes lead to great frustration on the world wide wasp nest, the end user perspective must prevail, the aim must be clearly articulated and caution is advised. Integrity adds beauty to numbers and scripts alike.
These pages offer a few scripts which may help combine the useful with the inevitable. They are not all the libraries or factories or cut-and-paste scripts found at other sites, but perhaps a mixture trying some concepts and sparkling some ideas about solution-orientated coding. The eye of the beholder is teased and tested.
With the standards dom interface and methods as specified by the W3 Consortium, to make the scripts work in as many known and unknown browsers on as many platforms out there as possible, but open to more efficient alternatives where available, and a clear separation of look, feel and content, yet without losing grip. Practical reasons and unmodest wishes may sometimes dictate the use of a browser specific functionality, such as text selections, which are in no way standardized. The possibilities are much more interesting than the impossibilities.
| Category | File | Title | Description | Size | Date |
|---|---|---|---|---|---|
| Basic | able | To script, or not? | Instructions for enabling and disabling Javascript | 8.06 KB | 10 Jul ‘05 |
| Other | activex | About ActiveX | How to deal with ActiveX controls on the web | 4.08 KB | 10 Jul ‘05 |
| Form | addoption | Add-an-option | How to fill select lists with dynamically created options | 5.47 KB | 5 Aug ‘05 |
| Timing | alarm | Alarm! | A multimedia alarm clock | 4.77 KB | 29 Jul ‘05 |
| Timing | animation | Ani-mate | How to animate at varying speeds | 2.37 KB | 10 Jul ‘05 |
| Basic | array | Array functions | Standard and advanced array functions | 20.74 KB | 22 Jul ‘05 |
| Math | average | Draw-a-curve | How to draw average curves in Javascript | 4.90 KB | 10 Jul ‘05 |
| Math | calculator | Calculate… | A practical scientific calculator | 6.09 KB | 6 Jul ‘05 |
| Beautiful | clip | Adam clipped | Interactive demonstration of the CCS clip property | 9.13 KB | 24 Jul ‘05 |
| Mousetail | clock | Analogue clock | An analogue clock follows the mouse | 7.74 KB | 10 Jul ‘05 |
| Mousetail | comets | The comets come | Evade the comets that come after the mouse | 12.22 KB | 19 Jul ‘05 |
| Dynamic | contextmenu | Double your contextmenu | How to combine a scripted contextmenu with the default | 12.16 KB | 10 Jul ‘05 |
| Math | convert | Conversion of measurements | Convert any measurement, however large, light or deep | 27.29 KB | 10 Jul ‘05 |
| Math | convertroman | Roman Number Converter | A small but fast and handsome conversion utility | 9.67 KB | 23 Jul ‘05 |
| Useful | converttemperature | Temperature Conversion | 2.70 KB | 19 Jul ‘05 | |
| Math | conway | Life according to Conway | How to script a cellular automaton: as a game | 16.29 KB | 8 Jul ‘05 |
| Timing | countdown | The countdown | How to count down using setTimeout | 3.20 KB | 10 Jul ‘05 |
| Math | curve | Curve | Online tool for producing spiral and other curved forms | 5.21 KB | 6 Jul ‘05 |
| Dynamic | draggable | Drag-a-tag | How to drag elements around the page | 4.26 KB | 10 Jul ‘05 |
| Mousetail | elastic | Jump, stretch, bounce | A spectacular mousetail, with strings attached | 6.53 KB | 24 Jul ‘05 |
| Text | encrypt | Key to encryption | How to encrypt text messages using a unique key | 4.58 KB | 10 Jul ‘05 |
| Basic | error | Syntax and errors | How to make use of errors at runtime | 3.80 KB | 10 Jul ‘05 |
| Mousetail | eyes | Eyes | A pair of eyes keeps a close watch on your mouse | 5.83 KB | 10 Jul ‘05 |
| Math | factor | Factor-that-number | How to find a number‘s factors and prime factors | 2.09 KB | 1 Aug ‘05 |
| Mousetail | feather | Blow-a-feather | A feather flies on the wind in this elegant mousetail | 3.44 KB | 11 Jul ‘05 |
| Useful | fileread | Read-a-file | How to access the local Windows file system | 21.13 KB | 2 Aug ‘05 |
| Useful | filewrite | Write-a-file | How to write to local files on Windows from Javascript | 9.48 KB | 11 Jul ‘05 |
| Useful | font | View-a-font | 12.59 KB | 2 Aug ‘05 | |
| Form | form | Check-a-box | How to check ranges of checkboxes | 8.31 KB | 10 Jul ‘05 |
| Text | hilite | Highlight-a-text | How to highlight text the fast way | 6.37 KB | 28 Jul ‘05 |
| Dynamic | imageswap | Swap-an-image | How to swap images | 2.54 KB | 15 Jul ‘05 |
| Dynamic | imagewizard | Image viewer | Online tool for examining images | 3.95 KB | 10 Jul ‘05 |
| More | jscript | JScript or JScript? | Standard and advanced array functions | 2.92 KB | 10 Jul ‘05 |
| Other | menu | No title | How to build a menu | 6.60 KB | 9 Aug ‘05 |
| Dynamic | menu1 | Revenge of the Menu Bar | How to build a menu from a list | 18.05 KB | 19 Jun ‘05 |
| Beautiful | moon | The moon today | The moon displayed in its various phases | 5.13 KB | 29 Jul ‘05 |
| Basic | mouseposition | Position that mouse | How to detect the location of the mouse across browsers | 2.82 KB | 18 Jul ‘05 |
| Mousetail | mousetail | It ‘s all in the tail | A simple straightforward mousetail | 2.82 KB | 12 Jul ‘05 |
| Math | numberformat | Numbers formatted | Advanced number notation methods | 3.02 KB | 10 Jul ‘05 |
| Text | numbertoword | Number to Word Convertor | How to write out numbers into words | 6.55 KB | 2 Aug ‘05 |
| Basic | optimize | Loop optimization | How to make a script do the same thing twice as fast | 10.73 KB | 29 Jul ‘05 |
| Mousetail | orbiter | Orbiters | Shiny happy colours swirling around the mouse | 4.95 KB | 10 Jul ‘05 |
| Useful | periodictable | Periodic Table of the Elements | Periodic Table of the Elements | 21.81 KB | 10 Jul ‘05 |
| Math | pi | PI | The first 10000 digits of pi | 14.03 KB | 31 Jul ‘05 |
| Dynamic | plode | Plode! | How to shatter an element into a million pieces | 3.52 KB | 10 Jul ‘05 |
| More | readurl | Read-an-url | How to load remote content into a page | 7.03 KB | 28 Jul ‘05 |
| Basic | ref | Welcome to the machine | Introduction to objects, properties and methods | 19.25 KB | 10 Jul ‘05 |
| Text | regex | Regular Expressions explained | An overview of the Javascript RegExp object | 17.07 KB | 10 Jul ‘05 |
| Dynamic | rightclickmenu | Rightclick menu | How to build a custom contextmenu | 3.27 KB | 10 Jul ‘05 |
| Text | rot13 | Rot13 | Rot13 under the loop | 5.32 KB | 23 Jul ‘05 |
| Dynamic | scrollbar | Get the scrollbar width | How to measure the size of the GUI scrollbars | 3.93 KB | 10 Jul ‘05 |
| Text | select | Selected elements | How to select text the cross-browser way | 9.07 KB | 17 Jul ‘05 |
| Useful | shell | Pop the shell | The Popup method of the WScript.Shell object | 12.64 KB | 15 Jul ‘05 |
| Form | slider | Slider | How to create a functional slider element | 6.59 KB | 15 Jul ‘05 |
| Other | slider2 | Windows’ own slider | How to implement a native Windows slider control | 7.67 KB | 23 Jul ‘05 |
| Basic | snips | Bits and pieces | A collection of code fragmanets | 6.43 KB | 10 Jul ‘05 |
| Dynamic | solarsystem | Solar System Script | How to navigate the universe | 2.58 KB | 18 May ‘05 |
| Dynamic | starfield | Starfield | How to fly through interstellar space | 4.09 KB | 8 Jul ‘05 |
| Basic | substring | A string within strings | An introduction into the substring method of strings | 8.36 KB | 10 Jul ‘05 |
| Mousetail | swirl | Swirling galaxy | A swirling mousetail | 6.66 KB | 30 Jul ‘05 |
| Dynamic | tab | Tab-a-page | How to create an interface of tabs | 11.92 KB | 10 Jul ‘05 |
| Table | tablehilite | Rows across tables | How to highlight rows in multiple tables simultaneously | 15.70 KB | 10 Jul ‘05 |
| Table | tablescroll | Sort ‘n’ Scroll | How to fix table headers and sort rows by column | 25.04 KB | 10 Jul ‘05 |
| Table | tablesort | Sort ‘n’ Scroll | How to sort table rows by column and fix the headers | 4.65 KB | 30 Jul ‘05 |
| Form | telraam | Telraam | Een eenvoudig doch flexibel telraam | 3.97 KB | 10 Jul ‘05 |
| Other | temp | No title | 76.73 KB | 8 May ‘05 | |
| Form | textarea | Line ’em up | How to number lines in a textarea | 3.47 KB | 10 Jul ‘05 |
| Dynamic | textarearesize | Resizable textarea | How to make a textarea resizable | 2.79 KB | 23 Jul ‘05 |
| Dynamic | toc | A table of contents | How to build a table of contents from heading elements | 7.11 KB | 11 Jul ‘05 |
| Text | unescape | Escape | ► How to write escaped characters | 1.25 KB | 24 Jul ‘05 |
| Dynamic | web | Weave-a-web | How to draw curved and really complex shapes | 2.13 KB | 10 Jul ‘05 |
| Useful | window | Browser size | How to measure various window sizes | 3.36 KB | 11 Jul ‘05 |
| Timing | worldclock | Worldclock | All the time in the world | 5.84 KB | 10 Jul ‘05 |
| Useful | xbm | BeaM | Browser-based XBM image editor | 31.35 KB | 8 Jul ‘05 |
| Basic | xmlhttp | Requesting XMLHttp | How to load remote content into a page | 26.07 KB | 4 Aug ‘05 |
Putting it in context.
聯(lián)系客服