Hey there [sadly, no name given :)],
you could try it like this: http://mooshell.net/kKAVS/
ot this: http://mooshell.net/cEwMK/
:)
Cheers, Daniel
On 2009-10-20, at 20/October, 1:18 PM, hamburger wrote:
Hello,
I'am a newbe and need some help. I have this snipe witch works very
well. I would like to cange my side to mootools and i need a
translation.
The function toggle my Sidebar by clicking on "id=ToogleSidebar"
jQuery('a#ToogleSidebar').click().toggle(function() {
jQuery('#sidebar').animate({
width: 'hide',
opacity: 'hide'
}, 'slow');
jQuery(this).toggleClass('sidebarcollapse');
jQuery(this).toggleClass('sidebarexpand');
}, function() {
jQuery('#sidebar').animate({
width: 'show',
opacity: 'show'
}, 'slow');
jQuery(this).toggleClass('sidebarcollapse');
jQuery(this).toggleClass('sidebarexpand');
});
I don't know how to change "jQuery" to a mootool function.
Thx for help in advance