>$("#toggle").click(function(){ > $("#calendar .arg").toggle( > function(){$(this).Highlight(1000,'#ff9');}, // called when shown > function(){...} // called when hidden > ); // toggle() >... >} // click() > >i believe this could be done without harming backwards-compatibility?
Toggle already uses callbacks: http://docs.jquery.com/Events#toggle.28_even.2C_odd_.29 -Dan