°³Ã¼ÀÇ ³»¿ëÀ» ȸ»ö ½ºÄÉÀÏ(grayscale)·Î Ç¥ÇöÇÑ´Ù.
Script | object.style.filter='(propVal)' |
HTML | <ELEMENT style="filter:(propVal)"> |
¾ÖÆ®¸®ºäÆ® | ¼Ó¼º | ¼³¸í |
---|---|---|
enabled | Enabled | ÇÊÅÍ°¡ ÀÛ¿ëÇÒ ¼ö ÀÖ°Ô ÇÒ °ÍÀΰ¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. true: »ç¿ë°¡´É, false:»ç¿ë ºÒ°¡´É |
BasicImage ÇÊÅ͸¦ »ç¿ëÇÏ¿© ´õ È¿°úÀûÀ¸·Î Ç¥ÇöÇÒ ¼ö ÀÖ´Ù.
A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, FRAME, hn, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LABEL, LEGEND, LI, MARQUEE, MENU, NOBR, OL, OBJECT, P, plainText, PRE, Q, RT, RUBY, runtimeStyle, S, SAMP, SMALL, SPAN, STRIKE, STRONG, STYLE, SUB, SUP, TABLE, TD, TEXTAREA, TH, TT, U, UL, VAR, XMP |
<SCRIPT> function doPlay(job){ if(job) divObj.filters[0].Enabled=true; else divObj.filters[0].Enabled=false; show.innerHTML='divObj.style.filter'+divObj.style.filter+' ¢¡ Enabled=('+divObj.filters[0].Enabled+')'; } </SCRIPT> <DIV id="divObj" style="height:100;width:400;font-size:30;line-height:1.2em;background:pink;color:blue; filter:Gray(Enabled=true);"> <IMG src=../../gif/rfexample.gif width=100><BR> Gray ÇÊÅÍ ¿¹Á¦ </DIV> <BUTTON onclick="doPlay(0)" style="width:200">Á¤»ó À̹ÌÁö</BUTTON> <BUTTON onclick="doPlay(1)" style="width:200">ÇÊÅÍ È¿°ú À̹ÌÁö</BUTTON> <DIV id=show style="width:400;height:20;font-size:14;border:solid 1 blue;padding:3;">ÇÊÅÍ Ç¥½Ãâ</DIV> </DIV>