<HTML>
<HEAD>
<TITLE>调色板工具</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<Link rel="stylesheet" type="text/css" href="pop.css">
<SCRIPT LANGUAGE=JavaScript>
var SelRGB = '#000000';
var DrRGB = '';
var SelGRAY = '120';
var hexch = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F');
function ToHex(n)
{ var h, l;
n = Math.round(n);
l = n % 16;
h = Math.floor((n / 16)) % 16;
return (hexch[h] + hexch[l]);
}
function DoColor(c, l)
{ var r, g, b;
r = '0x' + c.substring(1, 3);
g = '0x' + c.substring(3, 5);
b = '0x' + c.substring(5, 7);
if(l > 120)
{
l = l - 120;
r = (r * (120 - l) + 255 * l) / 120;
g = (g * (120 - l) + 255 * l) / 120;
b = (b * (120 - l) + 255 * l) / 120;
}else
{
r = (r * l) / 120;
g = (g * l) / 120;
b = (b * l) / 120;
}
return '#' + ToHex(r) + ToHex(g) + ToHex(b);
}
function EndColor()
{ var i;
if(DrRGB != SelRGB)
{
DrRGB = SelRGB;
for(i = 0; i <= 30; i ++)
GrayTable.rows(i).bgColor = DoColor(SelRGB, 240 - i * 8);
}
SelColor.value = DoColor(RGB.innerText, GRAY.innerText);
ShowColor.bgColor = SelColor.value;
}
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onclick>
SelRGB = event.srcElement.bgColor;
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onmouseover>
RGB.innerText = event.srcElement.bgColor.toUpperCase();
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=ColorTable EVENT=onmouseout>
RGB.innerText = SelRGB;
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=GrayTable EVENT=onclick>
SelGRAY = event.srcElement.title;
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=GrayTable EVENT=onmouseover>
GRAY.innerText = event.srcElement.title;
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=GrayTable EVENT=onmouseout>
GRAY.innerText = SelGRAY;
EndColor();
</SCRIPT>
<SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick>
window.returnValue = SelColor.value;
window.close();
</SCRIPT>
</HEAD>
<BODY bgcolor=menu>
<div align="center"><center><table border="0" cellspacing="10" cellpadding="0"><tr><td>
<TABLE ID=ColorTable BORDER=0 CELLSPACING=0 CELLPADDING=0 style='cursor:pointer'>
<SCRIPT LANGUAGE=JavaScript>
function wc(r, g, b, n)
{
r = ((r * 16 + r) * 3 * (15 - n) + 0x80 * n) / 15;
g = ((g * 16 + g) * 3 * (15 - n) + 0x80 * n) / 15;
b = ((b * 16 + b) * 3 * (15 - n) + 0x80 * n) / 15;
document.write('<TD BGCOLOR=#' + ToHex(r) + ToHex(g) + ToHex(b) + ' height=8 width=8></TD>');
}
var cnum = new Array(1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0);
for(i = 0; i < 16; i ++)
{
document.write('<TR>');
for(j = 0; j < 30; j ++)
{
n1 = j % 5;
n2 = Math.floor(j / 5) * 3;
n3 = n2 + 3;
wc((cnum[n3] * n1 + cnum[n2] * (5 - n1)),
(cnum[n3 + 1] * n1 + cnum[n2 + 1] * (5 - n1)),
(cnum[n3 + 2] * n1 + cnum[n2 + 2] * (5 - n1)), i);
}
document.writeln('</TR>');
}
</SCRIPT>
</TABLE></td><td>
<TABLE ID=GrayTable BORDER=0 CELLSPACING=0 CELLPADDING=0 style='cursor:hand'>
<SCRIPT LANGUAGE=JavaScript>
for(i = 255; i >= 0; i -= 8.5)
document.write('<TR BGCOLOR=#' + ToHex(i) + ToHex(i) + ToHex(i) + '><TD TITLE=' + Math.floor(i * 16 / 17) + ' height=4 width=20></TD></TR>');
</SCRIPT>
</TABLE>
</td></tr>
</table>
</center></div>
<div align="center"><center>
<table border="0" cellspacing="10" cellpadding="0" width="100%">
<tr><td rowspan="2" align="center" width=70>
<table ID=ShowColor bgcolor="#000000" border="1" width="50" height="40" cellspacing="0" cellpadding="0">
<tr><td></td></tr>
</table>
</td>
<td rowspan="2">基色 : <SPAN ID=RGB>#000000</SPAN><BR>
亮度 : <SPAN ID=GRAY>120</SPAN><BR>
代码 : <INPUT TYPE=TEXT SIZE=7 ID=SelColor value="#000000"></td>
<td width=50><BUTTON id=Ok type=submit>确定</BUTTON></td></tr>
<tr><td width=50><BUTTON onclick=window.close();>关闭</BUTTON></td></tr>
</table></center></div>
</BODY>
</HTML>
没有合适的资源?快使用搜索试试~ 我知道了~
ASP源码—陈皮知识网手机版整站源码(jQueryMoble) v1.0.zip
共151个文件
jpg:42个
asp:38个
gif:29个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 84 浏览量
2023-10-20
00:45:03
上传
评论
收藏 2.3MB ZIP 举报
温馨提示
ASP源码—陈皮知识网手机版整站源码(jQueryMoble) v1.0.zip
资源推荐
资源详情
资源评论
收起资源包目录
ASP源码—陈皮知识网手机版整站源码(jQueryMoble) v1.0.zip (151个子文件)
ft_news.asp 24KB
UpLoad_Class.asp 16KB
ft_link.asp 13KB
ft_news_class.asp 13KB
administrator.asp 11KB
md5.asp 10KB
ft_site.asp 10KB
main.asp 7KB
file_manager_json.asp 6KB
function.asp 5KB
list.asp 5KB
JSON_2.0.4.asp 5KB
home.asp 4KB
news_view.asp 4KB
index.asp 4KB
index.asp 4KB
upload_json.asp 3KB
imginch.asp 3KB
pic_upload_flash.asp 3KB
index.asp 3KB
pic_upfile_flash.asp 2KB
code.asp 1KB
classheader.asp 1KB
mheader.asp 1KB
config.asp 1005B
conn.asp 823B
conn_index.asp 811B
conn.asp 806B
check.asp 666B
remove.asp 662B
img.asp 608B
hits2.asp 566B
viewheader.asp 530B
aspcall.asp 396B
mfoot.asp 341B
data_name.asp 137B
foot.asp 59B
htmlurl.asp 42B
jquery.mobile-1.3.1.min.css 92KB
default.css 21KB
global.css 9KB
css.css 2KB
pager.css 2KB
form.css 539B
code_body.fix 3KB
code_head.fix 54B
ajax-loader.gif 8KB
loading.gif 3KB
bg_1.gif 2KB
button.gif 1KB
pager.gif 1KB
folder-64.gif 1KB
file-64.gif 1KB
flash.gif 1KB
media.gif 1KB
rm.gif 989B
left.gif 681B
align_left.gif 639B
align_right.gif 636B
align_top.gif 625B
up.gif 591B
go-up.gif 562B
40.gif 445B
alllist.gif 372B
anchor.gif 371B
5-120601160003-50.gif 356B
folder.gif 232B
folder-16.gif 226B
ico_p1.gif 203B
file-16.gif 170B
bg_forum.gif 129B
bg_forum0.gif 126B
Rect.gif 124B
ico_home.gif 64B
blank.gif 43B
selcolor.html 4KB
index.html 3KB
map.html 1KB
upload.inc 4KB
2013041620400749749.jpg 195KB
141.jpg 116KB
138.jpg 109KB
20130416204054905490.jpg 100KB
133.jpg 79KB
56.jpg 70KB
46.jpg 65KB
107.jpg 65KB
129.jpg 63KB
94.jpg 62KB
20130417100172647264.jpg 60KB
20130417095778667866.jpg 60KB
20130417100168826882.jpg 60KB
83.jpg 53KB
61.jpg 53KB
99.jpg 51KB
127.jpg 51KB
128.jpg 49KB
shuji.jpg 49KB
shuji.jpg 49KB
75.jpg 49KB
共 151 条
- 1
- 2
资源评论
毕业_设计
- 粉丝: 1936
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功