scrollTo inner div only
Posted
by Nik
on Stack Overflow
See other posts from Stack Overflow
or by Nik
Published on 2010-05-11T17:46:54Z
Indexed on
2010/05/11
17:54 UTC
Read the original article
Hit count: 389
I have a page with two scroll bars. I am using the scrollTo jquery plugin to jump to other areas on the same page. The problem is I only want the inner div to scrollTo and the outer div to remain at the top of the screen.
Development site link click here
This is the script
$(".jump > li").click(function() {
var qu = $(this).attr("id");
var an = "#" + qu.replace("q","a");
// step 8
$.scrollTo(an, {duration: 800, axis:"y"});
});
Any ideas?
© Stack Overflow or respective owner