// name:        background.js
// description: set background hue as mouse or mouse wheel moves
// author:      Pander <pander@users.sourceforge.net>
// license:     LGPL
// version:     2009-02-02 0.1 Initial release
window.addEvent('domready',function(){var c=new Color('#DFFFFF').hsb;document.addEvent('mousemove',function(e){var h=c[0];if(e.wheel<0){h-=3;if(h<0)h=360;}else{h+=3;if(h>360)h=0;}c[0]=h;document.getElement('body').setStyle('background-color',c.hsbToRgb());});document.addEvent('mousewheel',function(e){var h=c[0];if(e.wheel<0){h-=3;if(h<0)h=360;}else{h+=3;if(h>360)h=0;}c[0]=h;document.getElement('body').setStyle('background-color',c.hsbToRgb());});});
