Results 1 to 2 of 2

Thread: Close

Hybrid View

  1. #1
    Join Date
    Dec 2012



    Well I got here a nice little script I would like to edit, but I have no idea yet how to do it.
    Here is the code:

    <script type="text/javascript">



    $("#home_content_bg").slideToggle( 'slow');



    $("#contact_content_bg").slideToggle( 'slow');


    Like... I have Home already opend and I want to open Contact, first I want Home to close and after Home closed I want to open Contact.
    Could somebody help me with this?

  2. #2
    Join Date
    Sep 2008
    Easiest way, off the top of my head, is when they click on any nav, close everything, then open whatever they click on - by passing the ID probably. Just use the complete:function() to open whatever they click on. That way, it won't trigger until everything is done closing. Downside: if they are on 'home', then click 'home' again, 'home' will fade out then come back.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles