Displaying 2 results from an estimated 2 matches for "tocolorpart".
2005 Nov 07
2
question about Effect.Highlight and IE 5.5
...d apply the same color to each
childNode, as such:
update: function(position) {
var effect = this; var colors = $R(0,2).map( function(i){
return
Math.round(effect.colors_base[i]+(effect.colors_delta[i]*position))
});
this.updateElementColor("#" +
colors[0].toColorPart() + colors[1].toColorPart() +
colors[2].toColorPart());
},
finish: function() {
this.updateElementColor(this.options.restorecolor);
this.element.style.backgroundImage = this.oldBgImage;
},
updateElementColor: function(color) {
this.element.style.backgroundColor = color;...
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...f(arguments.length>1){
this.r=arguments[0];
this.g=arguments[1];
this.b=arguments[2];
}else{
this.r=parseInt(color.substr(0,2),16);
this.g=parseInt(color.substr(2,2),16);
this.b=parseInt(color.substr(4,2),16);
}
}
Color.prototype.toString=function(){
var s="";
s+=this.r.toColorPart().toUpperCase();
s+=this.g.toColorPart().toUpperCase();
s+=this.b.toColorPart().toUpperCase();
return s;
}
Effect2.Glow=Class.create();
Effect2.Glow.prototype=(new Effect2.Base()).extend({
initialize:function(){
this.element=$(arguments[0]);
options={
from:0.0,
to:1.0,
fromColor:n...