jquery navigate in code
Posted
by galilee
on Stack Overflow
See other posts from Stack Overflow
or by galilee
Published on 2010-04-18T20:49:42Z
Indexed on
2010/04/18
20:53 UTC
Read the original article
Hit count: 162
jQuery
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?
© Stack Overflow or respective owner