How many DIVs of class "tv" do you have? One?

And you want an other DIV to trigger the cross-fade on the "tv" DIV?

If that is the case...

    $(document).ready(function () {
        $('div.tv, #theOtherDiv').hover(function () {
                var div = $('div.tv > div');
                if (div.is(':animated')) {
                        div.stop().fadeTo(500, 1);
                } else {
                        div.fadeIn(250);
                }
        }, function () {
                var div = $('div.tv > div');
                if (div.is(':animated')) {
                        div.stop().fadeTo(1000, 0);
                } else {
                        div.fadeOut(1000);
                }
        });

Reply via email to