rem: divLabel.style.background = 
add: div.style.background = 
context: Timeline.ThumbnailEventPainter.prototype.paint = function() {    var eventSource = this._band.getEventSource();    if (eventSource == null) {        return;    }        if (this._highlightLayer != null) {        this._band.removeLayerDiv(this._highlightLayer);    }    this._highlightLayer = this._band.createLayerDiv(105);    this._highlightLayer.setAttribute("name", "event-highlights");    this._highlightLayer.style.display = "none";        if (this._eventLayer != null) {        this._band.removeLayerDiv(this._eventLayer);    }    this._eventLayer = this._band.createLayerDiv(110);    this._eventLayer.setAttribute("name", "events");    this._eventLayer.style.display = "none";        var minDate = this._band.getMinDate();    var maxDate = this._band.getMaxDate();        var doc = this._timeline.getDocument();        var p = this;    var eventLayer = this._eventLayer;    var highlightLayer = this._highlightLayer;        var theme = this._theme;    var textColor = theme.event.label.outsideColor;        var createEventDiv = function(evt, highlightIndex) {        var date = evt.getStart();        var thumbnail = evt.getProperty("thumbnail");                var pixel = Math.round(p._band.dateToPixelOffset(date));        var trackIndex = p._layout.getTrack(evt);        var trackOffset = p._trackOffset + trackIndex * p._trackHeight;                    var div = doc.createElement("div");        div.style.position = "absolute";        div.style.overflow = "hidden";        div.style.color = textColor;                div.style.left = pixel + "px";        div.style.top = trackOffset + "px";        div.style.width = p._thumbnailWidth + p._labelWidth;        div.style.height = p._thumbnailHeight;                var img = doc.createElement("img");        img.src = thumbnail;        img.style.verticalAlign = "text-top";        img.style.cssFloat = "left";        div.appendChild(img);                /*        var divLabel = document.createElement("div");        divLabel.style.height = p._trackHeight;        divLabel.style.overflow = "hidden";        divLabel.appendChild(doc.createTextNode(evt.getText()));        div.appendChild(divLabel);        */                div.appendChild(doc.createTextNode(evt.getText()));                div.style.cursor = "pointer";        Timeline.DOM.registerEvent(div, "mousedown", function(elmt, domEvt, target) {            p._onClickInstantEvent(img, domEvt, evt);        });                    eventLayer.appendChild(div);                if (highlightIndex >= 0) {            divLabel.style.background =                 theme.event.highlightColors[Math.min(highlightIndex, theme.event.highlightColors.length - 1)];        }    };        var filterMatcher = (this._filterMatcher != null) ?         this._filterMatcher :        function(evt) { return true; };    var highlightMatcher = (this._highlightMatcher != null) ?         this._highlightMatcher :        function(evt) { return -1; };        var iterator = eventSource.getEventIterator(minDate, maxDate);    while (iterator.hasNext()) {        var evt = iterator.next();        if (filterMatcher(evt)) {            createEventDiv(evt, highlightMatcher(evt));        }    }        this._highlightLayer.style.display = "block";    this._eventLayer.style.display = "block";};
meta: 6925	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6925/55664d8c3149edc11013f62e29e971f545014cf2/painters.js/clean/src/main/webapp/examples/dinosaurs/painters.js