Strips Filter


Strips Filter

Strips transition filter 는 지정한 Motion(LeftDown, LeftUp, RightDown, RightUp)으로 첫 번째 장면을 벗겨내는 형태로 두 번재 장면이 나타나는 transition filter 입니다.

Strips filter
Property 설 명
Motion
Strips transition 이 진행되는 방향.
LeftDown Default. 좌측 하단으로 strip.
LeftUp 좌측 상단으로 strip.
RightDown 우측 하단으로 strip.
RightUp 우측 상단으로 strip.
Duration Transition이 지속되는 시간의 초 단위. 예) Duration='1.0000' 이면 1초 지속.
html syntax <ELEMENT STYLE =
"filter:progid:DXImageTransform.Microsoft.Strips(sProperties)">
scripting object.style. filter =
"progid:DXImageTransform.Microsoft.Strips(sProperties)"
적용 대상 All block level elements.
Note  




Strips transition 예제


Source code
<html>
<head>
<title>Strips transition filter</title>
<script type="text/javascript">
<!--
var bState = 0;

function fnToggle(obj, obj1, obj2) {
obj.filters[0].Apply();
sStyle = document.StripsFilter.StripsMotion.options[document.StripsFilter.StripsMotion.selectedIndex].value;
obj.filters.item("DXImageTransform.Microsoft.Strips").Motion = sStyle;

if (bState == 0) {
bState = 1;
obj.style.backgroundColor="royalblue";
obj.style.color = "#FFFFFF";
obj2.style.visibility="visible";
obj1.style.visibility="hidden";
}

else {
bState = 0;
obj.style.backgroundColor="#ffffcc"
obj.style.color = "#000000"
obj2.style.visibility="hidden";
obj1.style.visibility="visible";
}

obj.filters[0].Play();
}
// -->
</script>
<style type="text/css">
<!--
.container{
width:200px;
height:200px;
position:relative;
top:50px;
left:50px;
background-color:#ffffcc;
border:1px solid tomato;
font:bold 18px verdana;
padding:10px;
filter: progid:DXImageTransform.Microsoft.Strips(Duration=1);
}
-->
</style>
</head>
<body>

<form id="StripsFilter" name="StripsFilter">
Motion :
<select id="StripsMotion" name="StripsMotion">
<option value="leftdown" selected="selected">LeftDown</option>
<option value="leftup">LeftUp</option>
<option value="rightdown">RightDown</option>
<option value="rightup">RightUp</option>
</select>
</form>

<button onclick="fnToggle(topContainer, img_1, img_2)">Play Strips Filter</button>

<div class="container" id="topContainer">
<img id="img_1" style="position:absolute" src="images/twins.gif" width="136" height="136"
alt="mc2_dice (6K)" />
<img id="img_2" style="visibility:hidden;position:absolute" src="images/mc2_dice.gif"
width="136" height="136" alt="twins (7K)" />
<span style="position:absolute;bottom:10px;">Strips Transition</span>
</div>

</body>
</html>


코드 실행 하기





이 문서의 저작권은 www.cadvance.org 에 있습니다.

Top
Back
New
검색