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

Reply via email to