Grow your CSS skills. Land your dream job.

Jquery on Rollover?

  • # December 19, 2009 at 2:57 pm

    Hello,

    I can’t seem to get this code to act onRollover. It sounds like it would make total sense but I keep breaking it every time. Any thoughts?

    Taken from the tutorial found here: http://net.tutsplus.com/javascript-ajax/create-a-tabbed-interface-using-jquery/
    This is my function I’ve placed at the top of the page:

    $(function() {
    $(‘#tabvanilla > ul’).tabs({ fx: { height: ‘toggle’, opacity: ‘toggle’ } });
    });

    If you need any other code don’t hesitate to shout.

    Thanks!!

    # December 19, 2009 at 3:25 pm

    You need the document.ready:

    Code:
    $(document).ready(function() {
    $(‘#tabvanilla’).tabs({ fx: { height: ‘toggle’, opacity: ‘toggle’ } });
    });
    # December 19, 2009 at 5:13 pm

    Hah. That worked. Duh. Better to be wrong because of a brain fart I suppose. :)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".