Jump to content

Jquery .slideToggle Issue in Firefox


bladv

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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...