var centerOn = new Date();
Timeline.createBandInfo({
date: centerOn,
timeZone: tzo,
width: "85%",
intervalUnit: iuTopBand,
intervalPixels: 90,
eventSource: eventSource
}),
I believe that if you leave out the date: centerOn line it will default to
the current date/time.
HTH.
On 3/5/07, Mail2000-曹哲毓 <[EMAIL PROTECTED]> wrote:
Hi,
"Timeline" was a very useful tool. However, how to locate the present
day directly in Javascript? I am not good at Java, so I do a stupid thing in
php:
<script type="text/javascript">
<?php
echo 'var tl;';
echo "function onLoad() {";
echo " var eventSource = new
Timeline.DefaultEventSource();";
echo " var bandInfos = [";
echo " Timeline.createBandInfo({";
echo " eventSource: eventSource,";
echo " date: \"" . date("M d Y
H:i:s") . "\",";
:
:
:
?>
However, this might work properly in FireFox but not in
Internet Explorer. Do you have a wise way to perform the present day in the
middle of timeline within Javascript?
Regards,
Henry
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general