Look inside timeline/api/scripts/original-painter.js or detailed-
painter.js
In the methods for painting each type of event, a function is
registered for mousedown events on the elements the painter draws.
By default, it uses _onClickInstantEvent and _onClickDurationEvent.
You can override those functions in your own code, or you can register
other functions to be called instead of (or in addition to) the
default handler methods.
If you wish to have additional functions called when the user clicks
on an object, add it through the .addOnSelectListener method on the
painter you are using. These methods that are registered as select
listeners will be called automatically by _fireOnSelect.
If you wish to suppress the default behavior of showing an info bubble
with event details, then redefine .showBubble to be a no-op. e.g.:
Timeline.DetailedEventPainter.prototype.showBubble = function() {};
or you can redefine what showBubble does entirely.
Hope this helps.
Mike Nosal
-----
On Apr 1, 2009, at 2:27 PM, Wilson durlo wrote:
> not find nothing
>
> 2009/3/28 David Huynh <[email protected]>
>
> Durlo wrote:
> > when the Internet user clicks the object on the timeline I want to
> run
> > a function, which define the action of clicking the object?
> >
> Have you tried searching for "click" in past discussions?
>
>
> http://groups.google.com/group/simile-widgets/search?group=simile-widgets&q=click&qt_g=Search+this+group
>
> David
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---