Mootools devs

As you might know, I am really keen on using the Javascript Mootools Framework as it is the first client-side framework I learnt.
Today, I want to share with you some of the scripts I wrote during the past few years…

As you noticed, they are all available for testing thanks to a very useful website called jsFiddle.

More to come!

Dynamic stylesheet swap with Mootools 1.2

Thanks to Mootools (my favorite JS Framework), it is possible to change the current CSS stylesheet dynamically really easily :

The Head :



The Body :


The JS:

$('styleSelector').addEvent('change',function(){
	var sexyColor = new Asset.css(this.value+'.css',{'id':'colorStyleSheet'});
	sexyColor.replaces(window.document.head.getElementById('colorStyleSheet'));
})