script
function getcolor(img_val,input_val){
var arr = showModalDialog("selcolor.html", "",
"dialogWidth:18.5em; dialogHeight:17.5em; status:0; help:0");
if (arr != null){
document.getElementById(input_val).value = arr;
img_val.style.backgroundColor = arr;
}
}
/script
input name="r_titlecolor" type="text" id="r_titlecolor" value=""
size="10" img border=0 src="../images/fcolor.gif"
style="cursor:pointer;background-Color:#000000;" onclick="getcolor
(this,'r_titlecolor');" title="选取颜色!" align="absmiddle"
相关文件下载: 下载此文件