// ########################################### // # iehover.js for mootools v1.2+ # // # adds hover to any element for ie6 # // ########################################### var ieHover = new Class({ //implements Implements: [Options], //options options: { collection: $$('.hover') }, //initialization initialize: function(options) { //set options this.setOptions(options); this.defaults(); }, //a method that does whatever you want defaults: function() { //if (Browser.Engine.trident4) { this.options.collection.each(function(el) { el.addEvent('mouseover', function(){ el.addClass('over'); }); el.addEvent('mouseout', function(){ el.removeClass('over'); }); }); //} } }); // window.addEvent('domready', function() { // var defs = new buttonHover({ // collection: $$('button') // }); // });