rendered paste body$$('ul.menu li').each(function(button)
{
if(button.down('div'))
{
button.down('div').observe('mouseover',function(mo)
{
if(!button.down('div').hasClassName('active'))
{
//console.log("mouseover: "+button.down('div').id);
//var queue = Effect.Queues.get(button.down('div').id);
// queue.each(function(e) { e.cancel(); });
button.down('div').morph('highlight',
{
duration: '0.2',
queue: {position: 'end', scope: button.down('div').id}
});
}
});
button.down('div').observe('mouseout',function(moo)
{
// console.log("mouseout: "+button.down('div').id);
// var queue = Effect.Queues.get(button.down('div').id);
// queue.each(function(e) { e.cancel() });
if(!button.down('div').hasClassName('active'))
{
button.down('div').morphOut('highlight',
{
duration: '0.2',
queue:{position: 'end', scope: this.id}
});
}
});
}