jej07
asked on
Help needed with setTimeout function
My website uses the responsive image slider from slippry.com. On the same page, I want to add a setTimeout function that will delay a modal from appearing. Separately, both work fine, however there seems to be a conflict which I can't identify when both are used.
$(document).ready(function () {
// This is what's used to call the slider:
jQuery('#slider').slippry( {
adaptiveHeight: false,
controls: true,
pause: 8000,
autoDelay: 5000
});
// This is where I setTimeout:
setTimeout(function() {
$('#signUpModal').modal('s how');
}, 2000);
});
Any help figuring out what's going on would be greatly appreciated.
$(document).ready(function
// This is what's used to call the slider:
jQuery('#slider').slippry(
adaptiveHeight: false,
controls: true,
pause: 8000,
autoDelay: 5000
});
// This is where I setTimeout:
setTimeout(function() {
$('#signUpModal').modal('s
}, 2000);
});
Any help figuring out what's going on would be greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Rob, for setting up a test page. I didn't even know the jsbin.com site existed - it's pretty nice.
Utilizing what you put together I was able to track down the source. Turns out there was another script on the page that I had missed entirely, which was causing the problem.
Utilizing what you put together I was able to track down the source. Turns out there was another script on the page that I had missed entirely, which was causing the problem.
Cd&