Hi Robert, Glad to help, thank you for the follow-up. For anyone else checking out this thread, remember that you should use the Timeline band with the lowest time period resolution. Eg if you have regular and overview bands in your Timeline, use the regular band if you want to move through the Timeline with buttons.
Larry ________________________________ From: "[email protected]" <[email protected]> To: SIMILE Widgets <[email protected]> Sent: Friday, February 6, 2009 9:24:19 PM Subject: Re: Moving The Timeline Page By Page THANKS LARRY! That worked PERFECTLY!! function pageForward() { var maxDate = tl.getBand(0).getMaxVisibleDate(); tl.getBand(0).setMinVisibleDate(maxDate); } function pageBack() { var minDate = tl.getBand(0).getMinVisibleDate(); tl.getBand(0).setMaxVisibleDate(minDate); } On Feb 1, 1:55 pm, Larry Kluger <[email protected]> wrote: > Hi Robert, > > The problem is that the amount of "Time" shown on an html page is not a > constant since HotZones (areas of different t-axis resolution), may or may > not be present on the page. > > I suggest that you: > a) get the band object for the band with the lowest t-axis (time axis) > resolution. > > b) For the page back button: > call band.getMinVisibleDate > then call band.setMaxVisibleDate to that date. > Result: you move the timeline to the left. > > c) For page forward button: > call band.getMaxVisibleDate > then call band.setMinVisibleDateto that date. > Result: you move the timeline to the right. > > Hope this helped, (let us know) > > Larry > > ________________________________ > From: "[email protected]" <[email protected]> > To: SIMILE Widgets <[email protected]> > Sent: Thursday, January 29, 2009 5:02:49 AM > Subject: Moving The Timeline Page By Page > > What Javascript function would I call in order to scroll the timeline > right or left by a full page? The "Moving the Timeline via > Javascript" wiki page is very helpful for jumping to a specific date, > but I need to add "Back" and "Next" buttons for my site that will > scroll the page left or right by a full page (i.e. visible region). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en -~----------~----~----~----~------~----~------~--~---
