Exacto, pero para procesar el archivo cambialo como .php y solo rescatas el valor y lo indicas donde quieras, por ejemplo:
Código PHP:
Ver original<title>Untitled Document</title>
<script src="http://simile.mit.edu/timeline/api/timeline-api.js" type="text/javascript"></script>
<script>
var tl;
function onLoad() {
var eventSource = new Timeline.DefaultEventSource();
var bandInfos = [
Timeline.createBandInfo({
eventSource: eventSource,
date: "<?php echo $fecha; ?>",
width: "70%",
intervalUnit: Timeline.DateTime.DAY,
intervalPixels: 100
}),
Timeline.createBandInfo({
showEventText: false,
trackHeight: 0.5,
trackGap: 0.2,
eventSource: eventSource,
date: "May 01 2009 00:00:00 GMT",
width: "30%",
intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 200
})
];
bandInfos[1].syncWith = 0;
bandInfos[1].highlight = true;
bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout());
tl = Timeline.create(document.getElementById("my-timeline"), bandInfos);
Timeline.loadXML("prueba1.xml", function(xml, url) { eventSource.loadXML(xml, url); });
}
</script>
</head>
<body onload="onLoad();" onresize="onResize();">
<div id="my-timeline" style="height:200px; border:1px solid #aaa"></div>
</body>
</html>
Saludos.