You can learn the tape id at runtime and match it up with an event's eventID (also at runtime).
You'd write js on the browser that'd make use of the dynamic data retrieved from the server. eg, in your download file, create additional (private) event attributes for the additional css effects that you want for the events (color, outline, border-style, etc). Then, on the browser, write js to go through the events data, looking for your additional attributes. When you find them, create/update the css rules for each event class. It'd be better to change the css rules than the divs since that way you don't have to worry about re-doing your changes to the divs when they are re-painted. -- Timeline events are painted and erased as the Timeline is panned. HTH, Larry ________________________________ From: Jorge <[email protected]> To: SIMILE Widgets <[email protected]> Sent: Wednesday, March 25, 2009 5:40:04 AM Subject: Re: change the css class of event tape from timeline-event-tape Thanks, "....every element drawn on the Timeline has a (unique) id ......" it´s good to know that, but I can´t see how I can use it, because I need to know the tape div id in advance when I build the json. As I´ve told it´s dynamic(PHP) and extracted from a mysql db. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
