<script> function chooseColor(){ var color; with(document.appendChild(document.createElement("object"))){ classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b"; color=ChooseColorDlg().toString(16); removeNode(true); return (color.length<6)?("000000".substring(0,6-color.length)).concat(color):color; } } </script>
<input id="temp" type="text"> <button onclick="temp.style.backgroundColor=temp.value=chooseColor()">Ä÷¯ ¼±ÅÃ</button>
|