¹øÈ£ÀÖ´Â ¸ñ·Ï¿¡¼ ½ÃÀÛ ¹øÈ£¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±â·Î µðÆúÆ®°ªÀº 1ÀÌ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
<OL id=olObj start=5 type=1> <LI>¸ñ·Ï Ç׸ñ 1 <LI>¸ñ·Ï Ç׸ñ 2 <LI>¸ñ·Ï Ç׸ñ 3 <LI>¸ñ·Ï Ç׸ñ 4 <LI>¸ñ·Ï Ç׸ñ 5 </OL> Çü½Ä<SELECT id=selObj><OPTION>1<OPTION>A<OPTION>a<OPTION>I<OPTION>i</SELECT> ½ÃÀÛ¹øÈ£: <INPUT id=inObj size=1> <BUTTON onclick=doChange(inObj.value)>º¯°æ</BUTTON> <SCRIPT> inObj.value=olObj.start; function doChange(numb){ olObj.start=inObj.value=numb; olObj.type=selObj(selObj.selectedIndex).text; } </SCRIPT>