<script>
var tl;
function onLoad(seq,semana) {
var eventSource = new Timeline.DefaultEventSource();
var eventPainter = new Timeline.eventPainter();
var theme = Timeline.ClassicTheme.create();
theme.event.bubble.width = 350;
var date = semana
var bandInfos = [
Timeline.createBandInfo({
width: "80%",
intervalUnit: Timeline.DateTime.WEEK,
intervalPixels: 220,
eventSource: eventSource,
date: date,
theme: theme
}),
Timeline.createBandInfo({
width: "20%",
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 200,
eventSource: eventSource,
date: date,
overview: true,
theme: theme
})
];
bandInfos[1].syncWith = 0;
bandInfos[1].highlight = true;
//
bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());
tl = Timeline.create(document.getElementById("tl"),
bandInfos, Timeline.HORIZONTAL);
tl.loadXML(seq, function(xml, url)
{ eventSource.loadXML(xml, url); });
setupFilterHighlightControls(document.getElementById("controls"), tl,
[0,1], theme);
}
var resizeTimerID = null;
function onResize() {
if (resizeTimerID == null) {
resizeTimerID = window.setTimeout(function() {
resizeTimerID = null;
tl.layout();
}, 500);
}
}
function centerTimeline(year) {
tl.getBand(0).setCenterVisibleDate(new Date(year, 0, 1));
}
</script>
This script works just fine...But when i uncomment that line it all
goes to wast..I want to set the color of events in bottom
timeline...How do i do that?!
Best regards,
Hugo
--
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.