If you would like to use a hiliteColor value of 'none', make the following change to the script file:
1) Find the following code: "hightlight : function()".
You will see the code for this function, which will be something like this: this.style.backgroundColor= options.hiliteColor; this.onfire = true;
this.style.backgroundColor= options.hiliteColor; this.onfire = true;
2) Change it so that it is as follows: if(options.hiliteColor != 'none') { this.style.backgroundColor= options.hiliteColor; this.onfire = true; }
if(options.hiliteColor != 'none') { this.style.backgroundColor= options.hiliteColor; this.onfire = true; }
That's it! Now, when you initialize the table, just set the hiliteColor value to 'none', like this: $("#mytable").colorize( {hiliteColor: 'none'} );
$("#mytable").colorize( {hiliteColor: 'none'} );
Great plugin. Hope this helps.
More information about formatting options
Using 'none' to disable highlighting
If you would like to use a hiliteColor value of 'none', make the following change to the script file:
1) Find the following code: "hightlight : function()".
You will see the code for this function, which will be something like this:
this.style.backgroundColor= options.hiliteColor;
this.onfire = true;
2) Change it so that it is as follows:
if(options.hiliteColor != 'none') {
this.style.backgroundColor= options.hiliteColor;
this.onfire = true;
}
That's it! Now, when you initialize the table, just set the hiliteColor value to 'none', like this:
$("#mytable").colorize( {hiliteColor: 'none'} );Great plugin. Hope this helps.