看板 Web_Design 關於我們 聯絡資訊
如下的原始碼: <SCRIPT> // the name of your first picture-file var picture1="f-71.jpg" // the name of your second picture-file var picture2="f-72.jpg" // the width and height of your pictures (pixels) var picturewidth=470 var pictureheight=300 </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, 2); 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> 他預設是只有兩張圖片可以輪播 那如果想要有更多張可以加入一起輪播 請問要怎麼改寫呢 以上的原始碼來自於:http://sheng.phy.nknu.edu.tw/wjs-130730.htm -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.130.198.138