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?

link test page.

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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -