Jump to content

Jquery .slideToggle Issue in Firefox


Recommended Posts

My site http://charleybiggs.com.s64567.gridserver.com/ is working properly in Chrome and Safari. When you click on certain boxes (the boxes with the plus sign), specific divs load at the top of the page. In Firefox though these divs are automatically showing when the page loads. They are supposed to be hidden until a box is clicked. Anyone have any idea why it’s doing this?

<script type="text/javascript">$( document ).ready(function() {      $("#music").click(function () {        $("#musicinfo").slideToggle('slow');        $("#fpinfo, #behindinfo, #behindinfo, #signupinfo").hide('slow');      });      $("#fproduct").click(function () {        $("#fpinfo").slideToggle('slow');        $("#musicinfo, #behindinfo, #behindinfo, #signupinfo").hide('slow');      });        $("#behind").click(function () {         $("#behindinfo").slideToggle('slow');         $("#fpinfo, #musicinfo, #signupinfo").hide('slow');      });      $("#signup").click(function () {        $("#signupinfo").slideToggle('slow');        $("#fpinfo, #musicinfo, #behindinfo").hide('slow');      });       $(".exit").click(function () {        $("#behindinfo, #musicinfo, #fpinfo, #signupinfo").hide('slow');      });    $('#behind, #fproduct, #music, #signup').click(function(){         var divLoc = $('#top').offset();         $('html, body').animate({scrollTop: divLoc.top}, "slow");     });    });</script>
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...