Hello Guys, I am kind of new to this language but i had this working at one point and now it doesn't work correctly. When you click the link in the footer div, it should fade out the home_main div and then after completed, proceed to the link url.
The issue is that when you click, it is skipping the fadeOut and just going to the url like a normal hyperlink.
the div is set to display none in the css by default so that isn't the problem. I think i just have a scripting mistake:
Code:
$('#footer a').click(function(){
$('.home_main').delay(200).fadeOut(500,function(){
var newLocation = $(this).attr('href');
document.location = newLocation;
});
return false;
});
Any ideas what I did wrong? the rest of my jquery is working fine but not this segment
Thanks