Sunday, April 18, 2010

jquery navigate in code

Programmer Question

Hi trying to fade out elements on the page when a navigation link is clicked, then go to the clicked link:



$("#navigation a").click(function() {   
var $clickobj = $this;
$("div#content").animate({opacity: 'toggle', paddingTop: '0px'}, 'slow',function(){
$("div#navigation").animate({opacity: 'toggle', paddingTop: '0px'}, 'slow', function(){
$("div#logo").animate({opacity: 'toggle', paddingTop: '0px'}, 900, function(){
$clickobj.click();
});
});
});
return false;
});


but this just navigates straight away with the fade out...any ideas?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails