Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery on Rollover?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27253
    ash3s
    Participant

    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!!

    #68328
    JaredAM
    Member

    You need the document.ready:

    Code:
    $(document).ready(function() {
    $(‘#tabvanilla’).tabs({ fx: { height: ‘toggle’, opacity: ‘toggle’ } });
    });
    #68330
    ash3s
    Participant

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.