Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2011
    Posts
    24
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Question Jquery sliding tab

    i have a sliding jquery tab which slides down then click the button again it slides up

    i want it start down and to slide up as it is the header i would like visitors to hide the header if they want the code is below

    Code:
    <script type="text/javascript">
    $(document).ready(function() {
    $(".topMenuAction").click( function() {
    if ($("#openCloseIdentifier").is(":hidden")) {
    $("#slider").animate({ 
    marginTop: "-170px"
    }, 900 );
    $("#topMenuImage").html('<img src="http://justaskdino.com/images/close.png" alt="close" />');
    $("#openCloseIdentifier").show();
    } else {
    $("#slider").animate({ 
    marginTop: "0px"
    }, 900 );
    $("#topMenuImage").html('<img src="http://justaskdino.com/images/open.png" alt="open" />');
    $("#openCloseIdentifier").hide();
    }
    });  
    });
    </script>

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    254
    Thanks
    1
    Thanked 63 Times in 63 Posts
    Wrong thread. Java is NOT the same as JavaScript.

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Despite the similar sounding names, Java is not the same as Javascript.
    Moving from Java forum to Javascript forum.

  • #4
    New Coder
    Join Date
    May 2011
    Posts
    56
    Thanks
    5
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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