So, essentially, I\'d like to have an item that is fixed to the the bottom of the page, but when the view scrolls horizontally, it should horizontally scroll too.
I
CSS part:
#footer {
position:fixed;
bottom:0px;
left:0px
}
jQuery part:
$(window).scroll(function(){
$('#footer').css('left','-'+$(window).scrollLeft()+'px');
});
Really the jQuery part must be like:
var s = $(window).scrollLeft() - scroll_old;
scroll_old = $(window).scrollLeft(); // initially = 0;
var diff = left_num - s;
var new_left = diff+"px";
then like above...