图片渐变切换

<html>
<head>
<title>
图片特效 </title>
</head>
<body topmargin="0" leftmargin="0" oncontextmenu="return false">
<noscript>
<iframe src="*.html">
</iframe>
</noscript>
<center>
<table style='font-size:9pt' width="100%">
<tr>
	<td align='center'>
		<script>
		var i = 0;
var pictures = new Array();
pictures[i++] = "http: //www.lilang.com/pic/hopeshow/hopeshow1.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow2.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow3.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow4.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow5.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow6.jpg";
pictures[i++] = "http://www.lilang.com/pic/hopeshow/hopeshow7.jpg";
var picturewidth = 180;
var pictureheight = 144;
var delay = 3;

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");
    whatTransformation.GradientSize = 1.0;
    whatTransformation.WipeStyle = 0;
    var myArr = new Array(),
        myArr2 = new Array();
    var len = Math.floor(pictures.length / 2)
    for (var i = 0; i < len; i++) {
        myArr[i] = m.ImportImage(pictures[2 * i]);
        myArr2[i] = m.ImportImage(pictures[2 * i + 1]);
    }
    myArr[i] = m.ImportImage(pictures[2 * i]);
    myArr = m.Array(myArr);
    myArr2 = m.Array(myArr2);
    Index = m.Interpolate(0.5, len + 0.5, len * 2 * delay).RepeatForever();
    Index2 = m.Interpolate(0, len, len * 2 * delay).RepeatForever();
    var whatPictures = new Array();
    whatPictures[0] = myArr.NthAnim(Index);
    whatPictures[1] = myArr2.NthAnim(Index2);
    forward = m.Interpolate(0, 1, delay);
    back = m.Interpolate(1, 0, delay);
    whatMovement = m.Sequence(forward, back).RepeatForever();
    theResult = m.ApplyDXTransform(whatTransformation, whatPictures, whatMovement);
    DAControl_Wipe.Image = theResult.OutputBvr;
    DAControl_Wipe.Start();
}
        </script>
	</td>
</tr>
</table>
</center>
</body>
</html>

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部