javascript - Scroll Div to specific place -
i have 12 month calendar in scollable div, 1 can see 2 calendar-months @ time. beside weekly planner.
click on image bigger picture.
in top menu of page user can change week being displayed. these links week number , year parameters.
what need when user navigate week, left div scrolls corresponding month. how can achieve this?
this can done algorithm. have find month go.
$(document).ready(function() { // write code under click event. , set goto variable assign here var goto="feb"; $('#calendar_container').animate({scrolltop:$("#"+ goto).offset().top},400 ); }); you need define ids each months of calender ex:
- january calender id "jan"
february calender id "feb"
like.
then set goto variable equuleus id

Comments
Post a Comment