Forums

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

Home Forums JavaScript rotate image on click

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32204
    Fourize
    Member

    hello,

    am tryna figure something out and it makes sense in the head but when i put it into testing nothing seems to work…

    what ive got is a simple vertical accordion and what i want is an image to rotate and point up or down depending on whether the section is open or closed?

    This is my current JQ for the accord

    $(function() {
    $('#accord-wrap .expand').wrapInner('');
    $('#accord-wrap div.demo:eq(0)').find('.expand:eq(0)').addClass('open').end()
    .find('div.collapse:gt(0)').hide().end()
    .find('.expand').click(function() {
    $(this).toggleClass('open').siblings().removeClass('open').end()
    .next('div.collapse').slideToggle();
    return false;
    });

    });

    any ideas?

    #52254
    jamygolden
    Member

    A Google search for “jQuery rotate” brought back this result: http://code.google.com/p/jquery-rotate/

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