ARCHIVES

Default text input values

February 24, 2009

I recently got annoyed with constantly writing javascript functions to set default values for text inputs that disappeared when you clicked on them and reappeared if you failed to enter text. One of the hurdles was resetting the type for the password field, because you don’t want your neighbor to see what you typed in [...]

Make any element into a clickable link with MooTools

February 24, 2009

What we have here is a rather useless and some what detrimental function that will allow you to add an href to any element to make it into a hyperlink. This is detrimental because these links won’t be followed by search engines – and useless because it doesn’t really add any functionality that can’t be [...]

Accordion Navigation with MooTools

February 24, 2009

Creating an animated navigation is one of those things that every developer looks for in their life-time. I know I said to myself – wouldn’t it be cool if I could easily create a custom navigation that would work in all browsers, allow me to go atleast 3 levels and be easy to setup. Well [...]

Easy Highlighting (Doesn’t work with IEx)

February 23, 2009

Ok.. first the disclaimer. IE sucks and is the root of all of things evil.. I said it.. and I a meant it. Why is it so hard to make background-color accessible through the dom? It isn’t – every browser has had it since 1998 – except IE. So if you care about IE as [...]

Easy Tabs with MooTools

February 23, 2009

So you want to create some tabs with mootools, and you figured this has already been done before? Well I couldn’t find anything to my liking so I decided to roll my own. Here you will find an easy to use function for creating tabbed content with MooTools 1.2 .

<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
    [...]