/* get bands to scroll without matching dates */  624    
tl.getBand(2).addOnScrollListener(    625        function(band) {  626          
  

var default_date=new Date(band.getCenterVisibleDate());  627        var 
center_date_milliseconds=Date.UTC(default_date.getFullYear(), 
default_date.getMonth(), default_date.getDate()); // gets miliseconds between 
default_date and midnight Jan 1 1970.                          628            
var band_date=new Date(center_date_milliseconds+date_offset);    630            
            //alert(band_date);  631                        
tl.getBand(0).setCenterVisibleDate(band_date);  632                             
                                  band_date=new 
Date(center_date_milliseconds+-169089600000);    633                        
//alert(band_date);  634                        
tl.getBand(1).setCenterVisibleDate(band_date);  635                             
                    636        }  637    );

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/simile-widgets/-/0CWAu-QFZ8AJ.
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.

Reply via email to