°³Ã¼³ª layer °³Ã¼ÀÇ ³»¿ëÀÌ µð½ºÇ÷¹ÀÌµÉ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.

NS : layer.visibility[='value']
Àμö
cssSelector : (½ºÅ¸ÀÏ ¼±ÅÃÀÚ)
¼Ó¼ºÀ» °¡Áú¼ö ÀÖ´Â ¿¤·¹¸àÆ®()³ª Ŭ¶ó½º(class) À̸§ ȤÀº ÀνÄÀÚ(id)ÀÌ´Ù.

: (¼Ó¼º ¹®ÀÚ¿­)
½ºÅ¸ÀÏ ¼Ó¼ºÀº ³»¿ëÀÌ ¸ðü ¿ë±â ¹üÀ§À» ¹ù¾î³ª¸é ´Ü¾î¸¦ À߶ó ´ÙÀ½ ÁÙ¿¡ Ç¥½ÃÇÒ °ÍÀΰ¡¸¦ ³ªÅ¸³»´Â ¹®ÀÚ¿­ÀÌ´Ù.

inherit IE NS µðÆúÆ®À̸ç, ´ÙÀ½ ¸ðü °³Ã¼ÀÇ ¼Ó¼º·ÎºÎÅÍ »ó¼Ó¹Þ´Âµð.
hidden IE °³Ã¼°¡ °¨ÃçÁø´Ù.
hide NS °¨Ãá´Ù.
show NS º¸ÀδÙ.
visible IE °³Ã¼°¡ º¸ÀδÙ.

ÀÌ ¼Ó¼ºÀº currentStyle¿¡¼­´Â ÀбâÀü¿ëÀÌ°í, ±×¿ÜÀÇ °³Ã¼¿¡¼­´Â Àбâ/¾²±âÀ̸ç, µðÆúÆ®°ªÀº inheritÀÌ´Ù.

CSS(Cascading Style Sheets) ¾ÖÆ®¸®ºäÆ®´Â »ó¼ÓµÇÁö ¾Ê´Â´Ù.

Ư±â

display:none°ú´Â ´Þ¸®, º¸ÀÌÁö ¾Ê´Â °³Ã¼µµ ³»¿ëÀÇ ¹èÄ¡¿¡¼­ º¸ÀÏ ¶§¿Í ¸¶Âù°¡Áö·Î °è¼Ó °°Àº ¹°¸®Àû °ø°£À» °®´Â´Ù. ÇÊ¿ä¿¡µû¶ó ½ºÅ©¸³Æ®·Î ÀÛµ¿½ÃÄÑ °³Ã¼¸¦ º¸ÀÌ°ÔÇϰųª °¨Ãß°Ô ÇÒ ¼ö ÀÖ´Ù.

IE5¿¡¼­, ¸ðü°¡ hiddenÀÏ ¶§µµ Àڽݳü°¡ visibleÀÌ µÉ ¼ö ÀÖ´Ù. IE4.0¿¡¼­´Â Àڽݳü°¡ visibleÀÌ µÇ·Á¸é ¸ðü°¡ visibleÀ̾î¾ß Çß´Ù.

Àû¿ë
°³Ã¼scriptCSS IE ¹öÀü
ÂüÁ¶

ÀÌ ¼Ó¼ºÀº CSS2(Cascading Style Sheets Level 2)¿¡ Á¤ÀǵǾú´Ù.



°£´ÜÇÑ Explorer visibility ¼Ó¼º ¿¹Á¦

¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.
<STYLE>
.visO { visibility:visible}
.visX { visibility:hidden}
</STYLE>
<IMG id="imgObj" src="../../gif/rfproperty.gif">
<DIV onMouseOver="imgObj.className='visX'"
   onMouseOut="imgObj.className='visO'">¸¶¿ì½º¸¦ ¿Ã·Áº¸¶ó.</DIV>

className°ú ÀζóÀÎ ½ºÅ¸ÀÏ µÎ°¡Áö ¹æ½ÄÀ¸·Î ¼­·Î »ó´ë À̹ÌÁöÀÇ visibility ¼Ó¼º°ªÀ» º¯°æ½ÃŲ´Ù.

<STYLE>
.visivO { visibility:visible }
.visivX { visibility:hidden }
</STYLE>
<IMG id="img1Obj" src="../../gif/flower1.jpg" height="100"
  onmouseover="img2Obj.className='visivX'" onmouseout="img2Obj.className='visivO'">
<IMG id="img2Obj" src="../../gif/flower.jpg" height="100"
  onmouseover="img1Obj.style.visibility='hidden'" onmouseout="img1Obj.style.visibility='visible'">

Netscape visibility ¼Ó¼º ¿¹Á¦

<LAYER name=aboveLayer bgcolor='lightgreen' top=50 left=80 width=150 height=50 style="border:solid 1 blue"
  onMouseOver="visibility='hide'">
ÀÌ°÷¿¡ mouseOver ÇÏ¿© layer º¸ÀÓÀÇ º¯È­¸¦ º¸¶ó.
</LAYER>

<LAYER name=belowLayer above=aboveLayer bgcolor='lightblue' top=20 left=20 width=150 height=50 style="border:solid 1 red">
À̺κÐÀº ¾Æ·¡ layerÀÌ´Ù.
</LAYER>