手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >颜色选择: ColorMatch 5K
颜色选择: ColorMatch 5K
摘要:body{background-color:#E6E6E6;font:10pxtahoma;margin:30px;margin-top:2...

body {background-color:#E6E6E6; font:10px tahoma; margin:30px; margin-top:20px; color:#323232; } p {margin:0px; margin-bottom:4px; font:11px tahoma; line-height: 12px; } td {vertical-align:top;} h1 {font-size:12px; font-weight:bold margin:0px; margin-bottom:8px; } .s{border:inset 1;width:50}.s2{border:outset 1;width:19;height:19;background-color:#E6E6E6;position:absolute;left:1;top:1}.t{font:11px tahoma;color:#555555}.t2{font:bold 36px verdana}var mover=moveg=moveb=moveh=0;var hs=new Object();var rg=new Object();rg.r=rg.g=rg.b=0;function click(x,s){if(x265){x=265}x-=10;eval("h"+s+".style").left=x+1;eval("rg."+s+"="+x);rg2hs(rg);ud("0",rg);sw.style.backgroundColor="rgb("+rg.r+","+rg.g+","+rg.b+")";dom();}function bclick(s){x=window.event.offsetX+eval("h"+s+".style.pixelLeft-1");click(x,s);}function sc(s){x=window.event.offsetX;click(x,s);}function movee(s){eval("move"+s+"=0")}function rc(x,m){if(x>m){return m}if(x70){y.v=hs.v-30}else{y.v=hs.v+30};z=h2r(y);ud("1",z);if((hs.h>=0)&&(hs.h70){yx.v=hs.v-30}else{yx.v=hs.v+30}}if((hs.h>=30)&&(hs.h=60)&&(hs.h70){yx.v=hs.v-30}else{yx.v=hs.v+30}}if((hs.h>=180)&&(hs.h70){yx.v=hs.v-30}else{yx.v=hs.v+30}}if((hs.h>=220)&&(hs.h70){yx.v=hs.v-30}else{yx.v=hs.v+30}}if(hs.h>=300){if(hs.s>50){y.s=yx.s=hs.s-40}else{y.s=yx.s=hs.s+40}yx.h=y.h=(hs.h+20)%360;y.v=hs.v;if(hs.v>70){yx.v=hs.v-30}else{yx.v=hs.v+30}}z=h2r(y);ud("2",z);z=h2r(yx);ud("3",z);y.h=0;y.s=0;y.v=100-hs.v;z=h2r(y);ud("4",z);y.h=0;y.s=0;y.v=hs.v;z=h2r(y);ud("5",z);}ColorMatch 5KThis utility will help you select a matching 6-color palette for your website.Define a single color that you like. Matching colors will be calculated.Click a color in the palette to promote it to the primary color.

I like this color:6-color matching palette: About this page

The color selector on this site was submitted as an entry for the Danish 5KB (5.120 bytes) web competition in 2001.

Given the nature of the competition ?allowing only for 5.120 bytes to be used in total! ?I was not able to make it cross-browser compatible at the time. Despite the lack of compatibility beyond IE, the tool won the competition.

A lot of enthusiastic people around the World have not only made it more compatible, but also added even more features. Google will guide you to them!

If you for some reason want to get in touch with me, please use the contact form at my site Port80.biz. ?Best regards, Kim Jensen aka kim^lwx

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

【颜色选择: ColorMatch 5K】相关文章:

下拉菜单的简易制作

让焦点自动跳转

JavaScript中eval函数的问题

分享自己用JS做的扫雷小游戏

创建你的第一个AngularJS应用的方法

jQuery获取字符串中出现最多的数

jquery实现用户打分评分特效

javascript生成不重复的随机数

Javascript通过overflow控制列表闭合与展开的方法

黑色风格的JS日历代码,左右箭头翻页年、月

精品推荐
分类导航