Forums

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

Home Forums CSS Hide and Show Div? Help!

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36092
    fandangomg
    Member

    Hello!

    I’m building a website for a customer (link below) and I need help from the experts.
    http://fandangomediagroup.com/Edthena2/new_edthena7.html

    I want to make the “Contact us” div clickable instead of having the current hover effect. I would lke for it to have the plus and minus button, so the user can easily open and close the contact section. Something similar to the side tabe on this website: http://www.olark.com (labeled “Get help here).

    Can anyone help me?

    #94532
    JoshGreen
    Member

    you need to do it with javascript and jquery.


    $(document).ready(function() {
    // Contact Tag Show
    $('#contact').click(function(){
    var w = $(this).outerWidth();
    $(this).animate({ bottom: -w}, 200,
    function(){
    $('#contact-expanded').animate({bottom:0}, 200);
    });
    return false;
    });
    // Contact Tag Hide
    $('#btn-close').click(function(){
    $('#contact-expanded').animate({bottom: -500}, 200,
    function(){
    $('#contact').animate({bottom: 0}, 200);
    $('.h').fadeIn('fast');
    });
    return false;
    });


    });

    Something like that should do the trick

    #94533
    fandangomg
    Member

    Thank you for your time, Josh, but I’m not having much luck. I sent you a direct message.

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