Hi, I'm working in a joomla page. Joomla uses moo1.1, there's a new update 1.5.20, where we can actually upgrade mootools to 1.2. Unfortunately, many extensions still try to load 1.1 functions. So, I would like to know what changes can I make to make the following code work with Moo1.1:
http://www.php-help.ro/mootools-12-javascript-examples/javascript-drop-down-menu-using-mootools-12/
Here's the code,
window.addEvent('domready', function() {
$('drop_down_menu').getElements('li.menu').each(function(elem) {
var list = elem.getElement('ul.links');
var myFx = new Fx.Slide(list).hide();
elem.addEvents({
'mouseenter': function() {
myFx.cancel();
myFx.slideIn();
},
'mouseleave': function() {
myFx.cancel();
myFx.slideOut();
}
});
})
});
Thanks for looking ;D Any tip is appreciated!