Iris ÇÊÅÍ ¿¹Á¦
ÇÊÅÍ Ç¥½Ãâ
<SCRIPT>
var aTypes=new Array('plus','diamond','circle','cross','square','star');
var aColors=new Array('green','pink','red','yellow','aqua','blue','brown','teal');
var Sidx=Bidx=Fidx=0;
bgB='pink';
function doPlay(job){
bgA=divObj.style.backgroundColor=aColors[Bidx%aColors.length];
if (!job) divObj.filters[0].Enabled=false;
else {
if (job==1){
} else if (job==2){
divObj.filters[0].irisstyle=aTypes[(++Sidx)%aTypes.length];
} else if (job==3){
divObj.filters[0].Duration++;
} else if (job==4){
if (divObj.filters[0].Duration) divObj.filters[0].Duration--;
} else if (job==5){
divObj.filters[0].Motion='in';
} else if (job==6){
divObj.filters[0].Motion='out';
} else if (job==7){
divObj.style.color=aColors[(++Fidx)%aColors.length];
} else if (job==8){
bgA=aColors[(++Bidx)%aColors.length];
bgB=aColors[(Bidx+1)%aColors.length];
}
divObj.style.backgroundColor=bgA;
divObj.filters[0].Enabled=true;
divObj.filters[0].Apply();
divObj.style.backgroundColor=bgB;
divObj.filters[0].Play();
}
str='';
str+='filter='+divObj.style.filter+'<BR>';
str+='¢¡ Enabled=('+divObj.filters[0].Enabled+'), ';
str+='IrisStyle=('+divObj.filters[0].IrisStyle+'), ';
str+='Duration=('+divObj.filters[0].Duration+') ';
str+='Motion=('+divObj.filters[0].Motion+')<BR>';
str+='background=('+bgA+')¢¡('+bgB+'), color=('+divObj.style.color+')';
show.innerHTML=str;
}
</SCRIPT>
<DIV id="divObj"
style="height:300;width:550;background-color:pink;font-size:30;line-height:1.2em;font-weight:bold;color:blue;padding:9;
filter:progid:DXImageTransform.Microsoft.Iris(IrisStyle=plus,duration=3);">
<IMG src=../../gif/rfexample.gif width=100><BR>
Iris ÇÊÅÍ ¿¹Á¦
</DIV>
<BUTTON onclick="doPlay(0)" style="width:110">Á¤»ó À̹ÌÁö</BUTTON>
<BUTTON onclick="doPlay(1)" style="width:110">Iris ÇÊÅÍ È¿°ú</BUTTON>
<BUTTON onclick="doPlay(2)" style="width:110">½ºÅ¸ÀÏ º¯°æ</BUTTON>
<BUTTON onclick="doPlay(3)" style="width:110">Duration++</BUTTON>
<BUTTON onclick="doPlay(4)" style="width:110">Duration--</BUTTON><BR>
<BUTTON disabled style="width:110"></BUTTON>
<BUTTON onclick="doPlay(5)" style="width:110">¾ÈÀ¸·Î</BUTTON>
<BUTTON onclick="doPlay(6)" style="width:110">¹ÛÀ¸·Î</BUTTON>
<BUTTON onclick="doPlay(7)" style="width:110">±ÛÀÚ»ö º¯°æ</BUTTON>
<BUTTON onclick="doPlay(8)" style="width:110">¹è°æ»ö º¯°æ</BUTTON>
<DIV id=show style="width:550;height:70;border:solid 1 blue;padding:3">ÇÊÅÍ Ç¥½Ãâ</DIV>
</DIV>