Anna Klochko wrote:
> I've been trying to create links under the timeline that will recenter the
> timeline to the date on the link. The links appear, but they don't actually
> recenter the timeline. Is there something that I'm missing. I've seen the
>
> function centerTimeline(date) {
>
> tl.getBand(0).setCenterVisibleDate(Timeline.DateTime.parseGregorianDateTime(date));
>
> but where exactly does that need to go, for it to make the links work?
>
So your html should look something like this:
<html>
<head>
...
<script type="text/javascript">
var tl;
function onLoad() {
... make the time line ...
}
function centerTimeline(date) {
...
}
</script>
...
</head>
<body onload="onLoad();">
...
<a href="javascript:centerTimeline(1984);">1984</a>
...
</body>
</html>
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general