Re: [問題] 圖片隨機播放

看板Web_Design作者 (^_^)時間18年前 (2006/08/31 17:25), 編輯推噓1(102)
留言3則, 2人參與, 最新討論串3/4 (看更多)
※ 引述《alpe (薛丁格的貓)》之銘言: : ※ 引述《qazsd (^_^)》之銘言: : : 如下的原始碼: : : <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" ^^^^^^^^^^^^^^^^^^^^^^^ 我陸陸續續在上面那行下面加了編號3 ~編號15 共15張照片在裡面 : : // 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); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 然後也在上面那行下面加了編號2到編號14的陣列(是叫陣列吧!?總之就是a[]之類的東西) 可是就完全沒有相片跑出來 而且狀態列還寫網頁錯誤(有一個黃色三角形的警告符號) 所以我想問說還有哪裡要改的 @@ !? 麻煩各位多多指教 : 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> : 這應該是vbscript 吧... ... 自己加上去吧 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.130.198.138 ※ 編輯: qazsd 來自: 140.130.198.138 (08/31 17:31)

08/31 17:36, , 1F
還有請問這兩行 forward = m.Interpolate(0, 1, 3);
08/31 17:36, 1F

08/31 17:36, , 2F
back = m.Interpolate(1, 0, 2);是什麼意思@@
08/31 17:36, 2F

08/31 17:47, , 3F
圖片的位子吧
08/31 17:47, 3F
文章代碼(AID): #14zgiUwp (Web_Design)
文章代碼(AID): #14zgiUwp (Web_Design)