Hi Jorge,

Re: a css event attribute. An interesting idea. In the meanwhile, my suggestion 
is that you create css rules for all the different combinations of looks that 
you want on your Timeline. Then your server program can choose from amongst the 
different rules.

Here's something else to try:
Try to set the classname to multiple classes (separated by blanks). In other 
words set an event's classname to "red dotted" then see if the rules
     .red {background-color: red;}
     .dotted {border-style: dotted;}
work.

Regards,

Larry



________________________________
From: Jorge <[email protected]>
To: SIMILE Widgets <[email protected]>
Sent: Wednesday, March 25, 2009 10:29:44 AM
Subject: Re: change the css class of event tape from timeline-event-tape


Thanks Larry,
but that is to many javascript for me :)

I will stick with the "tape-special_eventx" that´s easier to use, but
I have another problem now. I´ve managed to change the event color
bars with black dots, putting in json the classname="special_event2"
and defining in the styles.css
.tape-special_event2, .small-special_event2 {border-bottom: dotted
5px ;background-color:transparent;}

So far so good, but I would like to color the dotts. For that I need
to add the css property color. My problem is that I want some event
tapes with a different color, dynamic also, because I don´t know in
advance how many events will be. So, the color can´t be in the css
class but on the css style, because I rather prefer not to build at
runtime the css file .
I´ve tested in firebug, and I can accomplish this adding css 'color'
to the tape div.
Timeline json has a property named color, but this changes the
background-color, not the div color. So I have a problem :P

I think the better way, and a good idea to Timeline is to add another
property to json data named mayve insertInCssStyle. This would act as
a generic css wildcard and add anything in it to the div style. For
instance, in my case the json property would be
"insertInCssStyle":"color:red"

What do you think of this ?
Thanks for your support

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