이미지 슬라이드쇼

2003.08.08 23:51

juro 조회 수:890

<script language="JavaScript">
<!--
var picture1="kissofgod01.jpg"
var picture2="kissofgod02.jpg"


var picturewidth=300
var pictureheight=200
//-->
</script>


<script language="JavaScript">
<!--
if (document.all) {
document.write('<OBJECT ID="DAControl_Wipe" ')
document.write('STYLE="width:'+picturewidth+';height:'+pictureheight+'"')
document.write('CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">')
document.write('</OBJECT>')
m = DAControl_Wipe.MeterLibrary;

whatTransformation = new ActiveXObject("DXImageTransform.Microsoft.Wipe");

whatPictures = new Array();
whatPictures[0] = m.ImportImage(picture1);
whatPictures[1] = m.ImportImage(picture2);

forward = m.Interpolate(0, 1, 3); //
back = m.Interpolate(1, 0, 3); //3은 왼쪽방향 ( ← ) 속도입니다. 큰 수일수록 느려집니다.
whatMovement = m.Sequence(forward, back).RepeatForever();

whatTransformation.GradientSize = 1.0;
whatTransformation.WipeStyle = 0;

theResult = m.ApplyDXTransform( whatTransformation, whatPictures, whatMovement );

DAControl_Wipe.Image = theResult.OutputBvr;
DAControl_Wipe.Start();

}
//-->
</script>

같은 크기의 이미지가 왼쪽에서 오른쪽으로 오른쪽에서 왼쪽으로 변하는
소스입니다.


© juroweb 2003-2014. All rights reserved
log in