Hi Peter,

I'd recommend using version 2.0, which is slightly better refactored:

Still, you'll need to override the default handling a bit. Take a look in
    
http://static.simile.mit.edu/timeline/api-2.0/scripts/original-painter.js
and search for
    Timeline.OriginalEventPainter.prototype._paintEventLabel
To override this function, include your own Javascript after including 
timeline-api.js:
    <script>
        var oldPaintEventLabel = 
Timeline.OriginalEventPainter.prototype._paintEventLabel;
        Timeline.OriginalEventPainter.prototype._paintEventLabel = 
function(evt, text, left, top, width, height, theme) {
            var result = oldPaintEventLabel.call(this, evt, text, left, 
top, width, height, theme);
            var self = this;
            var onmouseover = function(elmt, domEvt, target) {
                return self._onClickInstantEvent(result.elmt, domEvt, evt);
            };
            SimileAjax.DOM.registerEvent(result.elmt, "mouseover", 
onmouseover);
            return result;
        };
    </script>

There are also _paintEventIcon and _paintEventTape that you may also 
want to override.

Hope that helps,

David


Peter Mika wrote:
> Hi All,
>
> I would like to change the default behaviour of the timeline to open 
> bubbles on mouseover, instead of clicks. Could someone give an advice 
> how to achieve this?
>
> Thanks in advance,
>
> Peter
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to