Å×À̺í Ä°ú ÀÎÁ¢ Ä»çÀÌÀÇ °Å¸®¸¦ °ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
Á¤¼ö°ª | Å×À̺í Ä°ú ÀÎÁ¢ÇÑ Ä»çÀÌÀÇ °Å¸®¸¦ Çȼ¿´ÜÀ§ Á¤¼ö·Î ³ªÅ¸³½´Ù. |
% (¹éºÐÀ²) | Å×À̺í Ä°ú ÀÎÁ¢ÇÑ Ä»çÀÌÀÇ °Å¸®¸¦ Àüü »ç¿ë°¡´ÉÇÑ °ø°£¿¡ ´ëÇÑ ¹éºÐÀ²·Î %¸¦ Ç¥½ÃÇÏ¿© ³ªÅ¸³½´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±âÀÌ¸ç µðÆúÆ®°ªÀº ¾ø´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®) HTML 3.2¿Í (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼ Á¤ÀǵǾú´Ù.
ÁÙ1 Ä1 | ÁÙ1 Ä2 | ÁÙ1 Ä3 | ÁÙ1 Ä4 |
ÁÙ2 Ä1 | ÁÙ2 Ä3 |
<TABLE id=tableObj border cellspacing=10 cellpadding=10 bgcolor="#ffffaa"> <TR id=tr1 style=background:#aaffff><TD id=td11>ÁÙ1 Ä1</TD><TD id=td12>ÁÙ1 Ä2</TD> <TD id=td13>ÁÙ1 Ä3</TD><TD id=td14 rowspan=2>ÁÙ1 Ä4</TD></TR> <TR id=tr2><TD colspan=2>ÁÙ2 Ä1</TD><TD>ÁÙ2 Ä3</TD></TR> </TABLE> <SCRIPT> function doPlay(job){ if (job==1) tableObj.cellSpacing++; if ((job==2)&&(tableObj.cellSpacing>0)) tableObj.cellSpacing--; if (job==3) tableObj.cellPadding++; if ((job==4)&&(tableObj.cellPadding>0)) tableObj.cellPadding--; show.innerText='tableObj.cellSpacing='+tableObj.cellSpacing+', tableObj.cellPadding='+tableObj.cellPadding; } </SCRIPT> <DIV style=font-size:130%> <SPAN style=background:#c0ffd0;color:#06d><B>cellSpacing</B></SPAN> <BUTTON onclick="doPlay(1)">Áõ°¡</BUTTON> <BUTTON onclick="doPlay(2)">°¨¼Ò</BUTTON><SPAN style="width:3em"></SPAN> <SPAN style=background:#c0ffd0;color:#06d><B>cellPadding</B></SPAN> <BUTTON onclick="doPlay(3)">Áõ°¡</BUTTON> <BUTTON onclick="doPlay(4)">°¨¼Ò</BUTTON> </DIV> <DIV id="show" style="border:solid 1 blue;padding:5">°á°ú Ç¥½Ãâ</DIV>