/**
* Sets the style on the given element to the given value. May be an
* object to specify multiple values. This function adapted from
* Ext.Element.setStyle().
*
* @param {HTMLElement} el The DOM element
* @param {String/Object} style The name of the style to set if a
* string, or an object of name =>
* value pairs
* @param {String} value The value to set the given style to
* @return void
* @public
* @static
*/
setStyle: function(el, style, value){
if(typeof style == 'string'){
var camel = toCamel(style);
if(camel == 'opacity'){
setOpacity(el, value);
}else{
el.style[camel] = value; (Zeile 136)
}
}else{
for(var s in style){
this.setStyle(el, s, style[s]);
}
}
},
Lesezeichen