第八百九十一章 上次和你說過的藥,弄來了嗎? (第8/9頁)
天青煙雨提示您:看後求收藏(奇妙書庫www.qmshu.tw),接著再看更方便。
if
(result
=
/#([a-fa-f0-9])([a-fa-f0-9])([a-fa-f0-9])/.exec(color))
return
[parseint(result[1]
+
result[1],
16),
parseint(result[2]
+
result[2],
16),
parseint(result[3]
+
result[3],
16)];
return
colors[jquery.trim(color).tolowercase()];
}
function
getcolor(elem,
attr)
{
var
color;
do
{
color
=
jquery.curcss(elem,
attr);
if
(color
!=
''
attr
=
"backgroundcolor";
}
while
(elem
=
elem.parentnode);
return
getrgb(color);
}
;
var
colors
=
{
aqua:
[0,
255,
255],
azure:
[240,
255,
255],
beige:
[245,
245,
220],
black:
[0,
0,
0],
b露e:
[0,
0,
255],
brown:
[165,
42,
42],
cyan:
[0,
255,
255],
darkb露e:
[0,
0,
139],
darkcyan:
[0,
139,
139],
darkgrey:
[169,
169,
169],
darkgreen:
[0,
100,
0],
darkkhaki:
[189,
183,
107],
darkmagenta:
[139,
0,
139],
darkolivegreen:
[85,
107,
47],
darkorange:
[255,
140,
0],
darkorchid:
[153,
50,
204],
darkred:
[139,
0,
0],
darksaln:
[233,
150,
122],
darkviolet:
[148,
0,
211],