<SCRIPT Language="JavaScript">
<!-- begin
var red=0; green=0; blue=0; hexnum='000000';
var hexchars='0123456789ABCDEF';
function toHex (num)
{
return hexchars.charAt(num >> 4) + hexchars.charAt(num & 0xF);
}
function fromHex (str)
{
var first=str.charAt(0);
var second=str.charAt(1);
return (16 * hexchars.indexOf(first)) + hexchars.indexOf(second);
}
function rgb ()
{
red=fromHex(hexnum.substring(0,2));
green=fromHex(hexnum.substring(2,4));
blue=fromHex(hexnum.substring(4,6));
}
function indexing ()
{
for ( var i=0; i<498; i++ )
{
if ( hexnum == document.forms[0].clrname.options[i].value )
break;
}
if ( i==498 ) i--;
index=i;
}
function paintit ()
{
document.forms[0].clrname.options[index].selected=1;
document.forms[0].red.value=red;
document.forms[0].green.value=green;
document.forms[0].blue.value=blue;
document.forms[0].hex.value=hexnum;
colorwin=window.open('',hexnum,'toobar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=130,height=50');
colorwin.document.write( '<html><title>' + hexnum + '</title><body bgcolor=#' + hexnum + '></body></html>' );
colorwin.document.close();
}
function inputval ()
{
var temp='';
if ( document.forms[0].takex[1].checked==true )
{
hexnum=document.forms[0].hex.value.toUpperCase();
for ( var i=0; i<=(hexnum.length-1); i++ )
{
temp += ( hexchars.indexOf(hexnum.charAt(i)) == -1 ? '0' :
hexnum.charAt(i) );
}
if ( hexnum.length < 6 )
{
for ( var i=hexnum.length-1; i<=5; i++)
{
temp += '0';
}
}
hexnum=temp;
rgb();
indexing();
paintit();
}
if ( document.forms[0].takex[0].checked==true )
{
with (Math)
{
temp=''+round(abs(parseFloat(document.forms[0].red.value)));
red=( temp=='NaN' ? 0 : temp );
temp=''+round(abs(parseFloat(document.forms[0].green.value)));
green=( temp=='NaN' ? 0 : temp );
temp=''+round(abs(parseFloat(document.forms[0].blue.value)));
blue=( temp=='NaN' ? 0 : temp );
}
if ( red>255 ) red=255;
if ( green>255 ) green=255;
if ( blue>255 ) blue=255;
hexnum= toHex(red) + toHex(green) + toHex(blue);
indexing();
paintit();
}
}
function inputname ()
{
hexnum=document.forms[0].clrname.options[document.forms[0].clrname.selectedIndex].value;
if ( hexnum=='' )
{
document.forms[0].red.value='';
document.forms[0].green.value='';
document.forms[0].blue.value='';
document.forms[0].hex.value=hexnum;
document.forms[0].takex[0].checked=0;
document.forms[0].takex[1].checked=0;
} else
{
indexing();
rgb();
document.forms[0].takex[0].checked=1;
paintit();
}
}
//-- end -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<FORM><TABLE Border=0><TR>
<TD Align=right><B>Name:</B></TD>
<TD Align=left><SELECT Name=clrname Size=1 onChange=inputname()>
<OPTION Value='000000'> ----- Black -----</OPTION>
<OPTION Value='0000FF'> ------ Blue ------</OPTION>
<OPTION Value='F0F8FF'>AliceBlue</OPTION>
<OPTION Value='7FFFD4'>Aquamarine</OPTION>
<OPTION Value='76EEC6'>Aquamarine2</OPTION>
<OPTION Value='66CDAA'>Aquamarine3</OPTION>
<OPTION Value='458B74'>Aquamarine4</OPTION>
<OPTION Value='F0FFFF'>Azure</OPTION>
<OPTION Value='F0FFFF'>Azure1</OPTION>
<OPTION Value='E0EEEE'>Azure2</OPTION>
<OPTION Value='C1CDCD'>Azure3</OPTION>
<OPTION Value='838B8B'>Azure4</OPTION>
<OPTION Value='0000EE'>Blue2</OPTION>
<OPTION Value='0000CD'>Blue3</OPTION>
<OPTION Value='00008B'>Blue4</OPTION>
<OPTION Value='8A2BE2'>BlueViolet</OPTION>
<OPTION Value='5F9EA0'>CadetBlue</OPTION>
<OPTION Value='98F5FF'>CadetBlue1</OPTION>
<OPTION Value='8EE5EE'>CadetBlue2</OPTION>
<OPTION Value='7AC5CD'>CadetBlue3</OPTION>
<OPTION Value='53868B'>CadetBlue4</OPTION>
<OPTION Value='6495ED'>CornflowerBlue</OPTION>
<OPTION Value='00FFFF'>Cyan</OPTION>
<OPTION Value='00EEEE'>Cyan2</OPTION>
<OPTION Value='00CDCD'>Cyan3</OPTION>
<OPTION Value='008B8B'>Cyan4</OPTION>
<OPTION Value='483D8B'>DarkSlateBlue</OPTION>
<OPTION Value='00CED1'>DarkTurquoise</OPTION>
<OPTION Value='00BFFF'>DeepSkyBlue</OPTION>
<OPTION Value='00B2EE'>DeepSkyBlue2</OPTION>
<OPTION Value='009ACD'>DeepSkyBlue3</OPTION>
<OPTION Value='00688B'>DeepSkyBlue4</OPTION>
<OPTION Value='1E90FF'>DodgerBlue</OPTION>
<OPTION Value='1C86EE'>DodgerBlue2</OPTION>
<OPTION Value='1874CD'>DodgerBlue3</OPTION>
<OPTION Value='104E8B'>DodgerBlue4</OPTION>
<OPTION Value='ADD8E6'>LightBlue</OPTION>
<OPTION Value='BFEFFF'>LightBlue1</OPTION>
<OPTION Value='B2DFEE'>LightBlue2</OPTION>
<OPTION Value='9AC0CD'>LightBlue3</OPTION>
<OPTION Value='68838B'>LightBlue4</OPTION>
<OPTION Value='E0FFFF'>LightCyan</OPTION>
<OPTION Value='D1EEEE'>LightCyan2</OPTION>
<OPTION Value='B4CDCD'>LightCyan3</OPTION>
<OPTION Value='7A8B8B'>LightCyan4</OPTION>
<OPTION Value='87CEFA'>LightSkyBlue</OPTION>
<OPTION Value='B0E2FF'>LightSkyBlue1</OPTION>
<OPTION Value='A4D3EE'>LightSkyBlue2</OPTION>
<OPTION Value='8DB6CD'>LightSkyBlue3</OPTION>
<OPTION Value='607B8B'>LightSkyBlue4</OPTION>
<OPTION Value='8470FF'>LightSlateBlue</OPTION>
<OPTION Value='B0C4DE'>LightSteelBlue</OPTION>
<OPTION Value='CAE1FF'>LightSteelBlue1</OPTION>
<OPTION Value='BCD2EE'>LightSteelBlue2</OPTION>
<OPTION Value='A2B5CD'>LightSteelBlue3</OPTION>
<OPTION Value='6E7B8B'>LightSteelBlue4</OPTION>
<OPTION Value='66CDAA'>MediumAquamarine</OPTION>
<OPTION Value='0000CD'>MediumBlue</OPTION>
<OPTION Value='7B68EE'>MediumSlateBlue</OPTION>
<OPTION Value='48D1CC'>MediumTurquoise</OPTION>
<OPTION Value='191970'>MidnightBlue</OPTION>
<OPTION Value='000080'>NavyBlue</OPTION>
<OPTION Value='AFEEEE'>PaleTurquoise</OPTION>
<OPTION Value='BBFFFF'>PaleTurquoise1</OPTION>
<OPTION Value='AEEEEE'>PaleTurquoise2</OPTION>
<OPTION Value='96CDCD'>PaleTurquoise3</OPTION>
<OPTION Value='668B8B'>PaleTurquoise4</OPTION>
<OPTION Value='B0E0E6'>PowderBlue</OPTION>
<OPTION Value='4169E1'>RoyalBlue</OPTION>
<OPTION Value='4876FF'>RoyalBlue1</OPTION>
<OPTION Value='436EEE'>RoyalBlue2</OPTION>
<OPTION Value='3A5FCD'>RoyalBlue3</OPTION>
<OPTION Value='27408B'>RoyalBlue4</OPTION>
<OPTION Value='87CEEB'>SkyBlue</OPTION>
<OPTION Value='87CEFF'>SkyBlue1</OPTION>
<OPTION Value='7EC0EE'>SkyBlue2</OPTION>
<OPTION Value='6CA6CD'>SkyBlue3</OPTION>
<OPTION Value='4A708B'>SkyBlue4</OPTION>
<OPTION Value='6A5ACD'>SlateBlue</OPTION>
<OPTION Value='836FFF'>SlateBlue1</OPTION>
<OPTION Value='7A67EE'>SlateBlue2</OPTION>
<OPTION Value='6959CD'>SlateBlue3</OPTION>
<OPTION Value='473C8B'>SlateBlue4</OPTION>
<OPTION Value='4682B4'>SteelBlue</OPTION>
<OPTION Value='63B8FF'>SteelBlue1</OPTION>
<OPTION Value='5CACEE'>SteelBlue2</OPTION>
<OPTION Value='4F94CD'>SteelBlue3</
没有合适的资源?快使用搜索试试~ 我知道了~
JavaScript特效(新)
共701个文件
txt:326个
gif:226个
htm:72个
需积分: 3 34 下载量 166 浏览量
2008-01-09
20:55:57
上传
评论
收藏 1.45MB RAR 举报
温馨提示
JavaScript特效(新版)<br>都是我收藏的 近200个实例 这些资源几乎可以出一本书 我给他分类很详细<br>好你就顶 没有必要骗你。。。好的话你就给我顶一下!
资源推荐
资源详情
资源评论
收起资源包目录
JavaScript特效(新) (701个子文件)
colorpicker.class 4KB
CanvasB.class 2KB
CanvasHS.class 1KB
zdqy_1.css 2KB
index.css 374B
Thumbs.db 52KB
Thumbs.db 32KB
Thumbs.db 21KB
Thumbs.db 20KB
Thumbs.db 16KB
Thumbs.db 16KB
Thumbs.db 10KB
Thumbs.db 10KB
Thumbs.db 9KB
Thumbs.db 9KB
Thumbs.db 9KB
Thumbs.db 9KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 8KB
Thumbs.db 7KB
Thumbs.db 7KB
Thumbs.db 7KB
Thumbs.db 7KB
Thumbs.db 7KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 6KB
Thumbs.db 5KB
Thumbs.db 5KB
Thumbs.db 5KB
Thumbs.db 5KB
Thumbs.db 5KB
Thumbs.db 4KB
Thumbs.db 4KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
Thumbs.db 3KB
txtx23.gif 22KB
logo1.gif 22KB
logo.gif 18KB
butterfly2.gif 17KB
butterfly1.gif 16KB
cqxjleft.gif 12KB
carrot.gif 11KB
cqxj.gif 11KB
kuodeping.gif 11KB
java.gif 11KB
java.gif 11KB
clock.gif 10KB
kongliaocui.gif 10KB
nvrensanshi.gif 9KB
butterfly.gif 8KB
wjmyy1.gif 7KB
jiefanglinju.gif 6KB
jedds.gif 5KB
seconds.gif 5KB
seconds2.gif 5KB
xhfmj1.gif 5KB
bgbubble.gif 4KB
hours.gif 4KB
hours2.gif 4KB
minutes2.gif 4KB
minutes.gif 4KB
goban.gif 3KB
bgclock.gif 3KB
first.gif 3KB
kdpwz.gif 3KB
nrss.gif 2KB
link03.gif 2KB
link01.gif 2KB
link05.gif 2KB
link02.gif 2KB
link04.gif 2KB
jflj.gif 2KB
klc.gif 2KB
wjmyy.gif 2KB
ghgzm.gif 2KB
Image5.gif 2KB
lucky01.gif 2KB
xhfmj.gif 2KB
Image2.gif 2KB
Image11.gif 2KB
Image18.gif 2KB
Image3.gif 2KB
Image1.gif 2KB
Image17.gif 2KB
Image13.gif 2KB
Image15.gif 2KB
Image16.gif 2KB
Image4.gif 2KB
Image9.gif 2KB
Image10.gif 2KB
Image12.gif 2KB
共 701 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
oxfei
- 粉丝: 43
- 资源: 70
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功