<script>
function colorpicker()
{
var sColor_tmp,sColor,color_len;
sColor_tmp=dlgHelper.ChooseColorDlg().toString(16);
color_len = sColor_tmp.length;
switch(color_len){
case 1:
sColor = "00000"+sColor_tmp.toString();
break;
case 2:
sColor = "0000"+sColor_tmp.toString();
break;
case 3:
sColor = "000"+sColor_tmp.toString();
break;
case 4:
sColor = "00"+sColor_tmp.toString();
break;
case 5:
sColor = "0"+sColor_tmp.toString();
break;
default:
js调用系统调色板
最新推荐文章于 2024-07-04 14:40:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)