I have a holding page for a website working as desired currently. Some Vegas running background fades and a simple nav bar down the bottom. Currently fixed to the bottom of the page with:
Position: absolute; bottom: 0;
View here: www.gigabang.co
I would like to develop it so that the the sit loads to that page, then the user can scroll down to reveal content. The Footer would scroll with the page to reveal the content and then stick at the top of the page.
I have managed to rudimentarily implement some stickUp jQuery that gets the 'footer' to stick to the top of the page, but Ive had to remove the position: absolute to get it to function.
Is there a way to get a div to start stuck to the bottom of the browser window and stick to the top after a scroll? Also ive had to remove the Vegas jQuery code to get the stickUp stuff to work too. Can anyone see why that would be?
Thanks for your help! -m
stickUp Script:
<script src="gigabang/stickUp.js"></script>
<script type="text/javascript">
//initiating jQuery
jQuery(function($) {
$(document).ready( function() {
//enabling stickUp on the 'footer' class
$('.footer').stickUp();
});
});
</script>
Vegas Script:
<!--<script type="text/javascript">
$(function() {
$.vegas('slideshow', {
delay: 8000,
backgrounds:[
{ src:'gigabang/WEBBG2.jpg', fade:1000 },
{ src:'gigabang/WEBBG5b.jpg', fade:1000 },
{ src:'gigabang/WEBBG6.jpg', fade:1000 },
{ src:'gigabang/WEBBG1.jpg', fade:1000 } ]
});$.vegas('overlay', {
src:'gigabang/vegas/overlays/13.png'
});
});
</script>