Search

11/28/2008

invert color


var invertColot = function(c) {
var t1 = '0123456789abcdef#'
var t2 = 'fedcba9876543210#'
return c.replace(/./gi, function(s){
return t2.charAt(t1.indexOf(s));
})
};

沒有留言: