1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
<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> |