Centering the timeline with javascript

<A href="javascript:centerTimeline(500);">500 n. Chr.</A>

and

function centerTimeline(date) {
        tl.getBand(0).setCenterVisibleDate
(Timeline.DateTime.parseGregorianDateTime(date));

}

just works great but i wonder how can it is possible to center the
timeline from an extern link

http://www.yourdomain.com/timeline.html?cDate=1500

calling a script

<script type="text/javascript">

centerTimeline(GetVariableWithDate);

</script>

wont work. Any Ideas?

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to