ȷƮκ Ư ϴ Ѵ.
script | object.style.behavior="url('colorpick.htc')"; | |
---|---|---|
object.addBehavior('colorpick.htc'); | ||
HTML | <INPUT type=text style="behavior:url('colorpick.htc')" id=idVal> | |
XML |
μ | idVal | ü ν ڿ̴. |
window.onload ̺Ʈ DZ ũƮ Ʒ Ӽ̳ ̺Ʈ . εǰ, onload ̺Ʈ Ǹ ش ̹ ǰ, Ӽ, , ̺Ʈ ũƮ ִ. ̺Ʈ ƮƮ ü õϸ ƮƮ Ӽ ü ʴ´ٴ Ų.
̹ IE5(win32,unix) ȴ.
attribute | property | |
---|---|---|
cp--cell-height | cpCellHeight | colorpick ̹ Ͽ ÷̵Ǵ ̸ ȯϰų |
cp--cell-width | cpCellWidth | colorpick ̹ Ͽ ÷̵Ǵ ʺ ȯϰų |
cp--grid-height | cpGridHeight | colorpick ̹ Ͽ ÷̵Ǵ ̸ ȯϰų Ѵ. |
cp--grid-size | cpGridSize | colorpick ̹ Ͽ ÷̵Ǵ ȯϰų Ѵ. |
cp--grid-style | cpGridStyle | colorpick ̹ borderWidth, borderStyle borderColor Ӽ Ӽ ȯϰų Ѵ. |
cp--grid-width | cpGridWidth | colorpick ̹ Ͽ ÷̵Ǵ ʺ ȯϰų Ѵ. |
cp--hover-style | cpHoverStyle | 콺 Ŀ ös colorpick ̹ Ư borderWidth, borderStyle borderColor Ӽ ȯϰų Ѵ. |
cp--selected-style | cpSelectedStyle | colorpick ̹ Ư borderWidth, borderStyle borderColor Ӽ ȯϰų Ѵ. |
name | name | colorpick ̹ ̸ ȯϰų Ѵ. |
value | value | colorpick ̹ ȯϰų Ѵ. |
̺Ʈ | |
---|---|
onchange | colorpick ̹ Ǹ ȴ. |
onerror | colorpick ̹ ȿ Ӽ Ҵϰų б뿡 Ҵ õϸ Ѵ. |
ü | IE |
---|---|
<INPUT type=text style="behavior:url('colorpick.htc')" id=idVal> | IE5(win32,unix) |
colorpick ̹ Ͽ ؽƮ ݿŲ.
<HTML> <STYLE> .colorpick {behavior: url(exp/ColorPick.htc)}</STYLE> <SCRIPT> function doColorChange(){ theText.style.color = picker.value; inColor.value = picker.value.toUpperCase(); } </SCRIPT> <BODY> <DIV id=theText style="border:solid 1 blue;padding:5">colorpick ̹ .</DIV> : <INPUT id=inColor type="text" size=8><BR><BR> <INPUT id=picker type="text" class="colorpick" value="#fFFf00" onchange="doColorChange()"><BR> </BODY> </HTML>