Hi Pascal,

To create a bubble, check out the function
Timeline.OriginalEventPainter.prototype._showBubble  in original-painter.
and copy what it does.

I've added comments to the code:
Timeline.OriginalEventPainter.prototype._showBubble = function(x, y, evt) {
    var div = document.createElement("div");  // create a div that will hold 
the contents of the bubble
    var themeBubble = this._params.theme.event.bubble; // get the parameters 
for creating the bubble
    evt.fillInfoBubble(div, this._params.theme, this._band.getLabeller()); // 
add content to the div. This will be the content of the bubble.
    
    SimileAjax.WindowManager.cancelPopups(); // dismiss any bubbles that are 
currently being shown
    SimileAjax.Graphics.createBubbleForContentAndPoint(div, x, y,
        themeBubble.width, null, themeBubble.maxHeight);  // show the bubble on 
the screen
};

Hope this helps,

Larry





________________________________
From: cronjob <[email protected]>
To: SIMILE Widgets <[email protected]>
Sent: Tuesday, February 24, 2009 4:53:46 PM
Subject: [timeline] open a bubble without an event


hello,
I'm using a timeline and need a popup to add information. To have a
consitent style, I want to use the bubbles from the timeline, but
without klicking on an event. I've only basic javascript skills. So
does anybody know if this is possible?

thanks,
pascal

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