Fun with mootools

March 18, 2007

I was playing with mootools today, and whilst trying to create a swapping pair of content divs, I put together a neat algorithm for handling the callbacks and getting it to do what I want.

I only wanted one div showing at a time, and I wanted them to swap with a function. So I set up the following guardian variable and functions. Check it out.

It might be a little verbose, but it works like a charm.

Categories: Geek
Tags: ,

Leave A Comment

Your email will not be published.