Something is wrong but I cannot tell what it is.. Can somebody help me please? It’s making all of my javascript/jquery fail, you can see it here: http://www.jacoinc.com/new/
I’m no longer getting an error however, it’s not working…
var wHeight = $(window).height();
var stickorstay = function() {
$('$supahslide').addClass('stay');
if(wHeight >= 800) {
$('#supahslide').addClass('stick', function() {
$('#supahslide.stay').removeClass('stay');
});
} else {
if(wHeight < 800) {
$('#supahslide').addClass('stay', function() {
$('#supahslide.stick').removeClass('stick');
});
};
};
};
$(window).resize(stickorstay);stickorstay();
The function syntax is incorrect:
The JavaScript error console (in Chrome) clearly pointed that out to me when I tried your page. That’s the first thing to check when you’ve got such problems.