var tempColor = "#000000";
function returnColor(vNum)
{
    
var Hcolor = dlgHelper.ChooseColorDlg(tempColor).toString(16);
    
with(event.srcElement)
    {
        
var fcObj = $("color"+vNum);
        fcObj.value 
= "#"+((Hcolor.length<6)?"000000".substring(0,6-Hcolor.length):""+ Hcolor; 
        fcObj.style.borderColor 
= "#" + Hcolor;
    }
    tempColor 
= Hcolor;
}

//-->
</script>
<OBJECT id=dlgHelper CLASSID="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" width="0px" height="0px"></OBJECT>
Posted on 2007-04-14 21:11  古代  阅读(313)  评论(0编辑  收藏  举报