作者qazsd (^_^)
看板Web_Design
标题Re: [问题] 图片随机播放
时间Thu Aug 31 17:30:44 2006
※ 引述《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)
1F:→ qazsd:还有请问这两行 forward = m.Interpolate(0, 1, 3); 08/31 17:36
2F:→ qazsd: back = m.Interpolate(1, 0, 2);是什麽意思@@ 08/31 17:36
3F:推 alpe:图片的位子吧 08/31 17:47