Jakob,

Welcome!

> I started playing around with the timeline, and as easy I find it to
> create one, as much trouble I have trying to change its style, i.e.
> background colours and such.  Looking at the code in firebug, I see

I've limited experience with js myself, but the following worked for me: 
You can gain control over the background color for the bands by setting 
the parameters for themes created with the Timeline.ClassicTheme.create() 
function. Have a look at the source for this: 
http://home.myuw.net/jjcrump/Timelines/JohnItinerary2.html. Note that I 
have a custom theme for the top band created like this:

var johnTheme = Timeline.ClassicTheme.create();
        johnTheme.ether.backgroundColors[0] = "#707070";

And the background color for the other two bands is set like this:

var theme = Timeline.ClassicTheme.create();
        .
        .
        .
        theme.ether.backgroundColors[1] = "#C0C0C0";
        theme.ether.backgroundColors[2] = "#E0E0E0";

There's a sketchy mention of this in: 
http://simile.mit.edu/timeline/docs/create-timelines.html#understanding-initialization-settings

Also, have a look at the themes.js file in the timeline API.

Hope that helps,
Jon
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to