Hey Anoyes,
Thanks again for your reply, you seem to be the resident jQuery guru... Thank you for taking the time.
I have used the code as shown below. I rushed it out for testing so please forgive the poor markup. It all seems to work except for the first drop down of the #content div once the page loads. When a link is clicked it seems to pull the content div up correctly, just won't drop it again once loaded.
I have no doubt that I have missed something simple like last time however I can not seem to find it.
Thank you again, you are a life saver Anoyes.
Main Topics
Browse All Topics





by: anoyesPosted on 2009-06-01 at 20:30:23ID: 24523708
Hello again! A couple little tweaks and we can get that to work. First we need to catch link clicks in the header, cancel their default action, and implement our own:
cument).re ady(functi on() { city:0, height: 0}, 'fast', function() {
ction() { city: 1, height: "100%"}, "fast");
<script type="text/javascript">
$(do
$('#header a').click(function() {
var href = $(this).attr('href');
$('#content').animate({opa
document.location = href;
});
return false; // Prevent 'default' action
});
});
</script>
That should slide up and fade the content, and when it's done, go to the next page.
Next step is to set up each page to fade in and slide down the content. The content div I believe should have display: none set on it for this.
$(document).ready(fun
$('#content').animate({opa
});
I think that should do it. Let me know if you have trouble w/ it or any other questions.
-Adam