> has anyone made this as (part of) a plugin?
>  
> It would seem to be commonly requested - to help visulisation of a large
> table.

Try this:
(function($) {
        var current;
        function findColumn(element) {
                
        }
        $.fn.columnHoverClass = (function(className) {
                $('td', this).hover(function() {
                        var index = $(this).parent().children().index(this);
                        current = $(this).parent().parent().find('tr > 
td:nth-child('+index+')');
                        current.addClass(className);
                }, function() {
                        current.removeClass(className);
                });
                return this;
        });
})(jQuery);

$('table').columnHoverClass('hover');

Haven't tested it with big tables, yet.

--
Jörn Zaefferer

http://bassistance.de
-- 
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to