WEB调用系统颜色选择对话框
2008-01-28 15:56
225 查看
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></OBJECT>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
<script>...
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var tempColor = "0099cc";
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
function returnColor()...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
var Hcolor = dlgHelper.ChooseColorDlg(tempColor).toString(16);
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif)
with(event.srcElement)...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
value = ((Hcolor.length<6)?"000000".substring(0,6-Hcolor.length):"") + Hcolor;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
style.backgroundColor = ((Hcolor.length<6)?"000000".substring(0,6-Hcolor.length):"") + Hcolor;
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
tempColor = Hcolor
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
</script>
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
<input type="text" value="#0099CC" size="12" onclick="returnColor()" style="background-color: #0099CC">
相关文章推荐
- 转载《WEB调用系统颜色选择对话框》
- WEB调用系统颜色选择对话框
- WEB调用系统颜色选择对话诓
- 如何在Windows窗体中调用系统调色板对话框,并获取用户所选择的颜色?
- 调用系统控件,打开选择文件或路径的对话框
- VS.net2005基于VC++实现windows mobile下调用颜色选择对话框
- VBS脚本代码(手工编写---在windows 7上调用系统对话框,来选择文件)
- 如何改变系统自带的颜色选择对话框位置
- win32如何调用系统颜色对话框
- MFC 调用颜色选择对话框
- AHK调用系统颜色对话框函数
- windows下C语言调用系统文件选择对话框
- 调用系统对话框,选择指定文件夹路径
- 调用CAD内的颜色选择对话框
- javascript 选择文件夹对话框(web)
- 应用颜色选择和字体选择对话框
- Unity调用系统窗口选择文件或文件路径 来赋值图片给物体
- MFC 颜色选择对话框、颜色按钮
- 分别在Windows与Ubuntu系统下在C程序中打开选择对话框
- 调用系统相机、图库并选择图片