> Mike M., > Interesting suggestions to use CSS. But even with the CSS approach, I > doubt if performance will be any better. Looping through each of the > 3000 divs and calling $(this).show() or $(this).addClass('showing') > will probably take the same amount of time.
That;'s almost certainly wrong. When you set the "class" like that, you're letting the browser - it's internal C++ code, that is - do what you want to do in Javascript. There's no way that the Javascript is going to be faster. -- Turtle, turtle, on the ground, Pink and shiny, turn around.