分享
 
 
 

带时钟、文字动画的网页,利用windows的控件

王朝system·作者佚名  2006-01-08
窄屏简体版  字體: |||超大  

(由于文档中心禁止使用script,只能把演示放到其他地方)范例在http://61.129.70.31/103180161/jeffreyren/111222/logo.html

这个使用的是windows自带的控件,该控件由windows的Internet Connect Wizard安装的。

“Internet向导”又是windows的必须程序。所以该控件保证在任何windows上都有

。所以~~`你可以放心的在自己的网页上利用这些空间,创造这些动态效果

。下面是使用这些空间创造动态效果的例子。

代码:

<HTML>

<HEAD>

<TITLE>很COOL的画面</TITLE>

</HEAD>

<BODY BGCOLOR=BLACK LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0>

<!-- 构造时钟控件-->

<OBJECT ID="Seq"

CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">

</OBJECT>

<DIV ID=controlDiv STYLE="visibility: hidden">

<OBJECT ID="DAControl"

STYLE="position:absolute; left:0; top:0;width: 100%; height:100%; filter:blendTrans(duration=5)"

CLASSID="CLSID:B6FFC24C-7E13-11D0-9B47-00C04FC2F51D">

</OBJECT>

</DIV>

<DIV ID=Intro>

<!-- 构造倒计时时候显示的扫描状扇形-->

<OBJECT id="Sweep"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:5; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0002" VALUE="SetFillColor(255,0,0)">

<PARAM NAME="Line0003" VALUE="SetLineStyle(1)">

<PARAM NAME="Line0004" VALUE="SetFillStyle(1)">

<PARAM NAME="Line0005" VALUE="Pie(-200,-200,400,400,0,30,0)">

<PARAM NAME="Line0006" VALUE=" HighQuality(1)">

</OBJECT>

<!--构造数字外面的圆圈-->

<OBJECT ID="Circle"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:5; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0002" VALUE="SetFillColor(0, 0, 0)">

<PARAM NAME="Line0003" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0004" VALUE="SetLineStyle(1)">

<PARAM NAME="Line0005" VALUE="Oval(-200,-200,400,400,0)">

<PARAM NAME="Line0006" VALUE="Oval(-175,-175,350,350,0)">

<PARAM NAME="Line0007" VALUE=" HighQuality(1)">

</OBJECT>

<!-- 构造倒计时的十字-->

<OBJECT ID="Crosshair"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT: 5; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetLineColor(139,139,139)">

<PARAM NAME="Line0002" VALUE="SetLineStyle(1)">

<PARAM NAME="Line0003" VALUE="Polyline(2,280,0,-280,0,0)">

<PARAM NAME="Line0004" VALUE="Polyline(2,0,230,0,-230,0)">

<PARAM NAME="Line0005" VALUE=" HighQuality(1)">

</OBJECT>

<!-- 构造倒计时的4-->

<OBJECT ID="Num5"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 350, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0003" VALUE="SetFillColor(0, 0, 0)">

<PARAM NAME="Line0004" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0005" VALUE="Text('5', -80, 100, 0)">

<PARAM NAME="Line0006" VALUE=" HighQuality(1)">

</OBJECT>

<!--构造倒计时的4-->

<OBJECT ID="Num4"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 350, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0003" VALUE="SetFillColor(0,0,0)">

<PARAM NAME="Line0004" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0005" VALUE="Text('4', -100, 100, 0)">

<PARAM NAME="Line0006" VALUE=" HighQuality(1)">

</OBJECT>

<!-- 构造倒计时的“3”-->

<OBJECT ID="Num3"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 350, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0003" VALUE="SetFillColor(0, 0, 0)">

<PARAM NAME="Line0004" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0005" VALUE="Text('3', -80, 100, 0)">

<PARAM NAME="Line0006" VALUE=" HighQuality(1)">

</OBJECT>

<!-- Object displays hollow white text "2", stuctured graphic-->

<OBJECT ID="Num2"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 350, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,255)">

<PARAM NAME="Line0003" VALUE="SetFillColor(0,0,0)">

<PARAM NAME="Line0004" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0005" VALUE="Text('2', -80, 100, 0)">

<PARAM NAME="Line0006" VALUE=" HighQuality(1)">

</OBJECT>

</DIV>

<!-- 构造显示"Newise.net 2001的控件-->

<OBJECT

ID="Icw"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 40, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(0, 0, 255)">

<PARAM NAME="Line0003" VALUE="SetFillColor(0, 0, 255)">

<PARAM NAME="Line0004" VALUE="SetHatchStyle(0)">

<PARAM NAME="Line0005" VALUE="SetFillStyle(1)">

<PARAM NAME="Line0006" VALUE="Text('Newise.net', -55, 0, 0)">

<PARAM NAME="Line0007" VALUE="Text('2001', -30, 30, 0)">

<PARAM NAME="Line0008" VALUE=" HighQuality(1)">

</OBJECT>

<!-- Object displays white text "Product", stuctured graphic-->

<OBJECT

ID="MM"

CLASSID = "CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6"

STYLE="POSITION:ABSOLUTE; WIDTH:100%; HEIGHT:100%; TOP:0; LEFT:0; VISIBILITY:HIDDEN">

<PARAM NAME="Line0001" VALUE="SetFont('Verdana', 40, 650, 0, 0, 0)">

<PARAM NAME="Line0002" VALUE="SetLineColor(0,255,0)">

<PARAM NAME="Line0003" VALUE="SetFillColor(255,255,255)">

<PARAM NAME="Line0004" VALUE="SetHatchStyle(0)">

<PARAM NAME="Line0005" VALUE="SetFillStyle(0)">

<PARAM NAME="Line0006" VALUE="SetLineStyle(1,1)">

<PARAM NAME="Line0007" VALUE="Text('Product', -250, 0, 0)">

<PARAM NAME="Line0008" VALUE="Text('Team', -250, 30, 0)">

<PARAM NAME="Line0009" VALUE=" HighQuality(1)">

</OBJECT>

<SCRIPT LANGUAGE="Javascript">

m = DAControl.MeterLibrary;

cm = 0.01;

geo = m.ImportGeometry("icw.wrl");

var IELogos = new Array();

pi = Math.PI;

IELogos[0] = m.ImportImage("face.gif");

IELogos[1] = m.ImportImage("face.gif");

IELogos[2] = m.ImportImage("face.gif");

IELogos[3] = m.ImportImage("face.gif");

IELogos[4] = m.ImportImage("face.gif");

IELogos[5] = m.ImportImage("face.gif");

IELogos[6] = m.ImportImage("face.gif");

IELogos[7] = m.ImportImage("face.gif");

IELogos[8] = m.ImportImage("face.gif");

imageCube = Movie(IELogos);

pLight = m.PointLight.Transform(m.Translate3(0,0,4));

dLight = m.DirectionalLight.Transform(m.Rotate3(m.YVector3, 0.5));

geo = geo.Transform(m.Scale3Uniform(0.5)).Texture(imageCube.MapToUnitSquare());

transXf3 = m.Scale3UniformRate(20*cm);

modifXf3 = m.ModifiableBehavior(transXf3.DurationAnim(m.DANumber(10)));

geo = geo.Transform(modifXf3);

srate = m.Mul(m.LocalTime, m.DANumber(9));

cube1 = geo.Transform(m.Compose3(m.Compose3(m.Rotate3Rate(m.YVector3, pi/4),m.Rotate3Rate(m.XVector3, pi/3)),m.Scale3Uniform(0.9))); //5 = pi/8 5= pi/6

cube1 = cube1.RunOnce();

Camera = m.PerspectiveCamera(5.5,4.5).Transform(m.Scale3(45, 45, 1));

cube1 = m.UnionGeometry(cube1, pLight);

rendered_geo = cube1.Render(Camera);

DAControl.Image = m.Overlay(rendered_geo, m.SolidColorImage(m.Black));

DAControl.Start();

function rollCow()

{

controlDiv.style.visibility = "visible";

}

function Movie(IELogos)

{

movieArray = m.DAArray(IELogos);

return movieArray.NthAnim(m.Mod(m.localTime,m.DANumber(9))) ;

}

</SCRIPT>

<SCRIPT LANGUAGE="VBScript">

'Specifies information for sequencer and controls multimedia event timing

Sub Seq_OnInit

Call Seq("LetsGo").at(0.000, "Setup(0)", 1, 0.050, 1)

Call Seq("LetsGo").at(0.000, "SweepRot", -1, 0.100, 1)

Call Seq("LetsGo").at(1.000, "Setup(1)", 1, 0.050, 1)

Call Seq("LetsGo").at(2.000, "Setup(2)", 1, 0.050, 1)

Call Seq("LetsGo").at(3.000, "Setup(3)", 1, 0.050, 1)

Call Seq("LetsGo").at(4.000, "Setup(4)", 1, 0.050, 1)

Call Seq("LetsGo").at(5.000, "TransIcw", 32, 0.033, 1)

Call Seq("LetsGo").at(5.000, "ScaleIcw", 5, 0.033, 1)

Call Seq("LetsGo").at(5.000, "TransMM", 28, 0.033, 1)

Call Seq("LetsGo").at(5.000, "ScaleMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.000, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.025, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.050, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.075, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.100, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.125, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.150, "RotateMM", 5, 0.033, 1)

Call Seq("LetsGo").at(6.175, "RotateMM", 5, 0.033, 1)

' Call Seq("LetsGo").at(6.500, "rollCow", 5, 0.033, 1)

Call Seq("LetsGo").at(10.000, "Setup(5)", 1, 0.050, 1)

' Call Seq("LetsGo").at(11.000, "rollCredits", 1, 0.050, 1)

Call Seq("LetsGo").at(11.000, "Setup(6)", 1, 0.050, 1)

End Sub

'moves Icw text across screen

Sub TransIcw

Call Icw.Translate(-6,0,0)

End Sub

'scale in Icw text

Sub ScaleIcw

Call Icw.Scale(.9,.9,.9)

End Sub

'moves Multimedia text across screen

Sub TransMM

Call MM.Translate(19,0,0)

End Sub

'scale in multimedia text

Sub ScaleMM

Call MM.Scale(.9,.9,.9)

End Sub

'rotates Multimedia text across screen

Sub RotateMM

Call MM.Rotate(-2,0,0)

End Sub

'sets rotation of sweep pie

Sub SweepRot

Call Sweep.Rotate(0,0,30)

End Sub

'Controls appearance and dissapperance of numbers and other media events

Sub Setup(FOO)

Select Case FOO

Case 0

SWEEP.style.visibility = "visible"

CROSSHAIR.style.visibility = "visible"

CIRCLE.style.visibility = "visible"

Num5.style.visibility = "visible"

Case 1

Num5.style.visibility = "hidden"

Num4.style.visibility = "visible"

Case 2

Num4.style.visibility = "hidden"

Num3.style.visibility = "visible"

Case 3

Num3.style.visibility = "hidden"

Num2.style.visibility = "visible"

Case 4

Num2.style.visibility = "hidden"

Sweep.style.visibility = "hidden"

Circle.style.visibility = "hidden"

Crosshair.style.visibility = "hidden"

'Controls.style.visibility = "visible"

MM.style.visibility = "visible"

Icw.style.visibility = "visible"

Case 5

'Controls.style.visibility = "hidden"

MM.style.visibility = "hidden"

Icw.style.visibility = "hidden"

Case 6

Intro.innerHTML = "<center><a href=HTTP://NEWISE.NET><font style='font-size:50px;color=white'>http://newise.net</a></center>"

Call Seq("LetsGo").Stop()

End Select

End Sub

'sets initial starting points for multimedia events

Sub Window_OnLoad

Call Icw.Scale(3,3,3)

Call MM.Scale(3,3,3)

Call MM.Rotate(90, 0, 0)

Call Seq("LetsGo").Play()

End Sub

</SCRIPT>

</BODY>

</HTML>

最后:windows里有很多控件,可以用在网页上,利用他们你可以创造出很绚丽的动态效果。

经常性的我们能见到在网页中用Ms Agent做网页向导的,但那需要下载一些控件安装....为什么我们不多多的利用系统中现有的控件呢?

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有