Laura, I've done something similar - see
http://naa.gov.au/collection/explore/federation/constitution-timeline.aspx I created a new fillTime function (see below) and just inserted in the page to overwrite the existing one. It calls another function to insert en dashes between dates. Hope this helps. Cheers, Tim Timeline.DefaultEventSource.Event.prototype.fillTime = function(elmt, labeller) { var startDate = this._start; var endDate = this._end; var startString = startDate.getDate() + " " + month[startDate.getMonth()] + " " + startDate.getFullYear(); var endString = endDate.getDate() + " " + month[endDate.getMonth()] + " " + endDate.getFullYear(); if (this._instant) { if (this.isImprecise()) { elmt.appendChild(elmt.ownerDocument.createTextNode(startString + " " + entity('–') + " " + endString)); } else { elmt.appendChild(elmt.ownerDocument.createTextNode(startString)); } } else { if (this.isImprecise()) { elmt.appendChild(elmt.ownerDocument.createTextNode( this.getProperty("start") + " ~ " + this.getProperty("latestStart"))); elmt.appendChild(elmt.ownerDocument.createElement("br")); elmt.appendChild(elmt.ownerDocument.createTextNode( this.getProperty("earliestEnd") + " ~ " + this.getProperty("end"))); } else { elmt.appendChild(elmt.ownerDocument.createTextNode(startString + " " + entity('–') + " " + endString)); } } }; function entity(str, mode) { str = (str) ? str : ""; mode = (mode) ? mode : "string"; var e = document.createElement("div"); e.innerHTML = str; if (mode == "numeric") { return "&#" + e.innerHTML.charCodeAt(0) + ";"; } else if (mode == "utf16") { var un = e.innerHTML.charCodeAt(0).toString(16); while (un.length < 4) un = "0" + un; return "\\u" + un; } else return e.innerHTML; } On Mon, Sep 15, 2008 at 4:45 PM, Laura Dunn <[EMAIL PROTECTED]> wrote: > > I am sure that the answer to this question is somewhere in this wiki > but I have searched and searched to no avail. I am wanting to alter > the display of the bubble basically. I have save the sources.js file > and load that up in my html file and have played a little bit with it > so I know that it is actually loading it. > My next step is that I want to format the date displayed so that it > never includes the time. I like the remainder of the date format > (Day, DD MMM YYYY). > > Any suggestions would be greatly appreciated. > Cheers, > Laura > > > -- Tim Sherratt ([EMAIL PROTECTED]) http://www.discontents.com.au --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
