°³Ã¼°¡ Åõ¸íÇÒ ¼ö Àִ°¡¸¦ ºÎ¿ï°ªÀ¸·Î ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù.
false | µðÆúÆ®À̸ç, °³Ã¼´Â Åõ¸íÇÏÁö¾Ê°í Åõ¸íÇØ Áú¼ö ¾ø´Ù. |
true | °³Ã¼´Â Åõ¸íÇØ Áú¼ö ÀÖ´Ù. |
ÀÌ ¼Ó¼ºÀº Àбâ/¾²±â·Î µðÆúÆ®°ªÀº falseÀÌ´Ù.
¼Ó¼º°ªÀÌ false·Î ¼³Á¤µÇ¸é °³Ã¼ÀÇ backgroundColor ¼Ó¼ºÀº À©µµ¿ì¿¡¸¸ Àû¿ëµÇ°í,
¼Ó¼º°ªÀÌ true·Î ¼³Á¤µÇ¸é °³Ã¼ÀÇ backgroundColor ¼Ó¼ºÀº transparent µðÆúÆ® ¼Ó¼º°ªÀ» Æ÷ÇÔÇÏ¿© ´Ù¸¥ °ªÀÌ ¼³Á¤µÉ ¼ö ÀÖ´Ù.
°³Ã¼ | script | HTML | ±Ô°Ý | IE |
---|
ÀÌ ¼Ó¼ºÀº (¿µ¹®)HTML 3.2 ±Ô°Ý¿¡ Microsoft°¡ È®ÀåÇÑ °ÍÀÌ´Ù.
¹®¼ À§¿¡¼ iFrame °³Ã¼°¡ º¸ÀÌ´Â »óÅÂÀ̸ç, ³»¿ªµé º¸¸é.
Frame | allowTransparency | background-color | º¸ÀÌ´Â °á°ú | ¼³¸í |
---|---|---|---|---|
Frame1 | true | - | pink | Åõ¸í |
Frame2 | true | yellow | yellow | Åõ¸íÇϳª ¹è°æ»öÀÌ ³ë¶û»ö |
Frame3 | false(µðÆúÆ®) | - | white | µðÆúÆ®¿¡ ÀÇÇØ ºÒÅõ¸í |
Frame4 | false(µðÆúÆ®) | yellow | white | µðÆúÆ®¿¡ ÀÇÇØ ºÒÅõ¸í |
<SCRIPT>
function showIt(){
newWin=window.open('','example','');
str='<BODY style="background-color:pink"><STYLE>iFrame{width:300;height:100}</STYLE><CENTER>';
str+='<NOBR><IFRAME id="Frame1" src="../property/exp/wTrans.html" allowTransparency="true"></IFRAME>';
str+='<IFRAME id="Frame2" src="../property/exp/wTrans.html" '+
'allowTransparency="true" style="background-color: yellow"></IFRAME></NOBR>';
str+='<NOBR><IFRAME id="Frame3" src="../property/exp/wTrans.html"></IFRAME>';
str+='<IFRAME id="Frame4" src="../property/exp/wTrans.html" style="background-color:yellow"></IFRAME></NOBR>';
str+='<BR><BUTTON onClick="self.close()">â´Ý±â</BUTTON>';
str+='</BODY>';
newWin.document.write(str)
}
</SCRIPT>
<BUTTON onclick="showIt()">¿¹Á¦ Ŭ¸¯</BUTTON>
../property/exp/wTrans.html ÆÄÀÏ ÄÚµå
<HTML>
<HEAD>
<TITLE>Åõ¸í¼º(Transparent) ¿¹Á¦ ÆäÀÌÁö</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=euc-kr">
</HEAD>
<BODY style="background-color:transparent">
<H4>Åõ¸í¼º(Transparent) ¿¹Á¦ ÆäÀÌÁö</H4>
</BODY>
</HTML>