darryncooke
Technical User
I have 2 functions I am trying to run using document.ready
Problem is that the second one keeps firing twice.
If you click on the Locations or Catering text on the right the P tag expands and then collapses. If I remove the first function then it works fine. If I use noConflict then it works fine but then the first function doesn't.
Im not a javascript programmer by any means but I can usually figure these issues out. What am I missing?
Darryn Cooke
| Marketing and Creative Services
Code:
$(document).ready(function(){
// Initialize Backgound Stretcher
$('BODY').bgStretcher({
images: ['images/2carne-asada-taco-plate.jpg', 'images/carne-asada-torta.jpg'], imageWidth: 1920, imageHeight: 1080, nextSlideDelay: 5000, slideShowSpeed: 'slow',
});
$(".contents").hide();
$(".headings").click(function()
{
$(this).next(".contents").slideToggle(500);
});
});
Problem is that the second one keeps firing twice.
If you click on the Locations or Catering text on the right the P tag expands and then collapses. If I remove the first function then it works fine. If I use noConflict then it works fine but then the first function doesn't.
Im not a javascript programmer by any means but I can usually figure these issues out. What am I missing?
Darryn Cooke
| Marketing and Creative Services