<SCRIPT> var sInitColor = null; function callColorDlg(){
if (sInitColor == null) //display color dialog box var sColor = dlgHelper.ChooseColorDlg(); else var sColor = dlgHelper.ChooseColorDlg(sInitColor); //change decimal to hex sColor = sColor.toString(16); //add extra zeroes if hex number is less than 6 digits if (sColor.length < 6) { var sTempString = "000000".substring(0,6-sColor.length); sColor = sTempString.concat(sColor); } sColor = "#" + sColor; sInitColor = sColor; alert(sInitColor); return sInitColor; } </SCRIPT>
[code="javascript"] var sInitColor = null; function callColorDlg(){ if (sInitColor == null) //display color dialog box var sColor = dlgHelper.Cho...