Javascript Code Snippets
Snippets are small pieces of code that do not fit in the UvumiTools plugin category. Please note that each of these semi-useful functions requires Mootools 1.2.
- Snippets are short and sweet, generally under 50 lines of code. They only do one small action.
- Snippets don't do much on their own, but can be helpful when used in existing Javascript/Mootools web sites.
- Snippets are not "plug & play". You don't just inlude them in a <script> tag like the plugins. You sort of need to know how and when to use them. At the very least, you need Mootools 1.2 scripts included in your site before you can start using these functions.
- Snippets are more experimental and fun than our plugin tools. There is very little documentation, and support or further comments will need to be addressed in our forum. You can just copy/paste them as is and try to make them work with your site, modify them, or improve them if you like.
Despite the trivial and experimental nature of these code snippets, we thought they were cool enough to share them with the Javascript and web development communities.
Using these snippets is darn easy: We show you the code here on the site so you can copy/paste it. Then right underneath, we include a small demo.
You can also directly grab the source javascript file that we use on this page.
Some of ournippets extend the Mootools' Element object, using Element.implement(). If you use several of them, they can be grouped in a single implement function:
anotherFunction : function(){
Here is a list with direct links to each snippet. We will add more when we invent them, so check back often!