※ 圖形特效 ※
|
<body bgcolor="#000000" text="#00FF00" link="#0033CC" vlink="#FF00FF" topmargin="15" leftmargin="20" background="jpg/01_bkg1.jpg"> <p align="center"><font color="#FF0000" size="6"><object id="DAControl" classid="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D" align="left" border="0" width="352" height="240" style="position: absolute; left: 138; top: 0"></object></font> </p> <script language="JScript"> <!-- m = DAControl.MeterLibrary; numGeos = 5; speed = m.Div(m.LocalTime, m.DANumber(2.5)); hue = m.Abs(m.Sin(m.Div(speed,m.DANumber(2)))); offX = m.Mul(m.DANumber(.04),m.Sin(speed)); offY = m.Mul(m.DANumber(.04),m.Sin(speed)); rotX = m.Mul(speed, m.DANumber(2)); rotY = m.Mul(speed, m.DANumber(2)); rotZ = m.Mul(speed, m.DANumber(2)); lrotX = m.Mul(m.DANumber(.02),speed); lrotY = m.Mul(m.DANumber(.02),speed); lrotZ = m.Mul(m.DANumber(.02),speed); scale = m.DANumber(1); //Create an animated color half = m.DANumber(0.5); clr = m.colorHslAnim(hue, half, half); xfID = m.IdentityTransform2; xfsc = m.Scale2UniformAnim(scale); xflr = m.Compose3(m.Compose3(m.Rotate3Anim(m.xVector3,lrotX), m.Rotate3Anim(m.yVector3,lrotY) ), m.Rotate3Anim(m.zVector3,lrotZ) ).ParallelTransform2(); xflt = m.Translate2Anim(offX, offY); xfwt = m.Compose3(m.Compose3(m.Rotate3Anim(m.xVector3,rotX), m.Rotate3Anim(m.yVector3,rotY) ), m.Rotate3Anim(m.zVector3,rotZ) ).ParallelTransform2(); xf = m.Compose2(xfwt, m.Compose2(xflt, m.Compose2( xflr, xfsc ) ) ); rect = m.RectAnim(m.DANumber(.015),m.DANumber(.015)); recImg = m.SolidColorImage(clr).Clip(m.FillMatte(rect)); finalImg = m.EmptyImage; for(i=0; i<numGeos; i++) { wait = xfID.Duration(i*.3); newImg = recImg.Transform(m.Sequence(wait,xf)); finalImg = m.Overlay(newImg,finalImg); } // Assign the animation back to the control and start it DAControl.Image = finalImg; DAControl.Start(); //--> </script> |