版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、<!DOCTYPE HTML PUBLIC "-/W3C/DTD HTML 4.0 Transitional/EN"><HTML><HEAD><TITLE><a class="channel_keylink" href=" target="_blank">网页特效</a></TITLE><META http-equiv=Content-Type content="text/html; charset=utf-8"&g
2、t;<SCRIPT language=JavaScript type=text/javascript>isNS4 = (document.layers) ? true : false;isIE4 = (document.all && !document.getElementById) ? true : false;isIE5 = (document.all && document.getElementById) ? true : false;isNS6 = (!document.all && document.getElementBy
3、Id) ? true : false;var curX, curY, curX2, curY2, boxX, boxY, moving=0, touch=0;var gametime=0, started=0, speed;var starttime, endtime, finaltime=0; /pass finaltime to popup window to ask for initialsvar enemyxdir = new Array(1,1,1,1);var enemyydir = new Array(1,1,1,1);if (isNS4 | isNS6)document.cap
4、tureEvents(Event.MOUSEUP|Event.MOUSEDOWN|Event.MOUSEMOVE);document.onmousedown = start;document.onmousemove = checkLocation;document.onmouseup = stop;function startclock() var today = new Date(); starttime = today.getTime();function endclock() var today = new Date(); endtime = today.getTime();functi
5、on calctime() var time = (endtime - starttime - 0)/1000; return time;function giveposX(divname) if (isNS4) var posLeft = document.layersdivname.left;else if (isIE4 | isIE5) var posLeft = document.all(divname).style.pixelLeft;else if (isNS6) var posLeft = parseInt(document.getElementById(divname).sty
6、le.left + "");return posLeft;function giveposY(divname) if (isNS4) var posTop = document.layersdivname.top;else if (isIE4 | isIE5) var posTop = document.all(divname).style.pixelTop;else if (isNS6) var posTop = parseInt(document.getElementById(divname).style.top + "");return posTo
7、p;function setposX(divname, xpos) if (isNS4) document.layersdivname.left = xpos;else if (isIE4 | isIE5) document.all(divname).style.pixelLeft = xpos;else if (isNS6) document.getElementById(divname).style.left = xpos;function setposY(divname, ypos) if (isNS4) document.layersdivname.top = ypos;else if
8、 (isIE4 | isIE5) document.all(divname).style.pixelTop = ypos;else if (isNS6) document.getElementById(divname).style.top = ypos;function givesize(divname, dimension) var divsize = 0;if (dimension = 'y') if (isNS4) divsize = document.layersdivname.clip.height;else if (isIE4 | isIE5) divsize =
9、document.all(divname).style.pixelHeight;else if (isNS6) divsize = parseInt(document.getElementById(divname).style.height + "");else if (dimension = 'x') if (isNS4) divsize = document.layersdivname.clip.width;else if (isIE4 | isIE5) divsize = document.all(divname).style.pixelWidth;e
10、lse if (isNS6) divsize = parseInt(document.getElementById(divname).style.width + "");return divsize;/ check to see if 'box' is touching 'enemy1'function checktouching(num) var enemy = "enemy" + num + ""var difX = giveposX('box') - giveposX(enemy)
11、 - 0; / -0 converts to integervar difY = giveposY('box') - giveposY(enemy) - 0;/ set touch = 1 if it is touching an enemyif (difX > (-1 * givesize('box', 'x') && difX < givesize(enemy, 'x') && difY > (-1 * givesize('box', 'y')
12、&& difY < givesize(enemy, 'y') touch = 1;else touch = 0;function movenemy(num,step_x,step_y)var enemy = "enemy" + num + ""var enemyx = givesize(enemy, 'x');var enemyy = givesize(enemy, 'y');if (giveposX(enemy) >= (450 - enemyx) | giveposX(ene
13、my) <= 0) enemyxdirnum = -1 * enemyxdirnum;if (giveposY(enemy) >= (450 - enemyy) | giveposY(enemy) <= 0) enemyydirnum = -1 * enemyydirnum;var newposx = giveposX(enemy) + (step_x*enemyxdirnum) + 0;var newposy = giveposY(enemy) + (step_y*enemyydirnum) + 0;setposX(enemy, newposx);setposY(enemy
14、, newposy);checktouching(num + "");if (touch = 1) stop(); reset();function movenemies() gametime = gametime + 1if (gametime >= 0 && gametime < 100) speed = 80;else if (gametime >= 100 && gametime < 200) speed = 60;else if (gametime >= 200 && gametime
15、< 300) speed = 40;else if (gametime >= 300 && gametime < 400) speed = 30;else if (gametime >= 400 && gametime < 500) speed = 20;else speed = 10;/ window.status = "speed: " + speed + " gametime: " + gametime;movenemy(0,-10,12);movenemy(1,-12,-20);mov
16、enemy(2,15,-13);movenemy(3,17,11);setTimeout(movenemies,speed);function start(e) if (started = 0) movenemies(); startclock(); started = 1; curX = (isNS4 | isNS6) ? e.pageX : window.event.x ;curY = (isNS4 | isNS6) ? e.pageY : window.event.y ;curX2 = eval(curX - 40);curY2 = eval(curY - 40);boxX = eval
17、(curX - 20);boxY = eval(curY - 20);var boxleft = giveposX('box');var boxtop = giveposY('box');if (curX > boxleft && curX2 < boxleft && curY > boxtop && curY2 < boxtop) moving = 1;setposX('box', boxX);setposY('box', boxY);if (isNS4 |
18、 isNS6)document.captureEvents(Event.MOUSEMOVE);function stop(e)moving=0;if (isNS4 | isNS6)document.releaseEvents(Event.MOUSEMOVE);function reset(e)endclock();moving=0;if (isNS4 | isNS6)document.releaseEvents(Event.MOUSEMOVE);if (finaltime = 0) finaltime = calctime();window.alert('你堅持了 ' + fi
19、naltime + ' 秒');/ var entername = window.confirm('Enter your name?');/ if (entername) / window.open("?" + finaltime,'winwin','width=300,height=500,left=40,top=40,status=1,resizable');/ document.location.reload();/ / else document.location.reload();document.l
20、ocation.reload();function checkLocation(e)curX = (isNS4 | isNS6) ? e.pageX : window.event.x ;curY = (isNS4 | isNS6) ? e.pageY : window.event.y ;boxX = eval(curX - 20);boxY = eval(curY - 20);checktouching('1');if (moving = 1 && touch = 0)setposX('box',boxX);setposY('box
21、9;,boxY);if (curY > 69 && curX > 69 && curY < 381 && curX < 381) return false;else stop(); reset();else if (touch = 1)stop(); reset();</SCRIPT><META content="MSHTML 6.00.2900.5512" name=GENERATOR><style type="text/css"><!-.
22、style1 color: #ECE9D8.style10 color: #FF6600.style4 font-size: 12;color: #333333;.style9 color: #669966; font-size: 12px; .style2 font-weight: bold.style3 font-size: 14px.style5 font-size: 16px-></style></HEAD><BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0 marginheight
23、="0"marginwidth="0"><DIV id=boxstyle="LEFT: 205px; WIDTH: 40px; POSITION: absolute; TOP: 205px; HEIGHT: 40px; BACKGROUND-COLOR: #990000; layer-background-color: #990000"><TABLE height=30 width=30><TBODY><TR><TD> </TD></TD><
24、;/TR></TBODY></TABLE></DIV><DIV id=enemy0style="LEFT: 270px; WIDTH: 60px; POSITION: absolute; TOP: 60px; HEIGHT: 50px; BACKGROUND-COLOR: #000099; layer-background-color: #000099"><TABLE height=50 width=60><TBODY><TR><TD> </TD></TR
25、></TBODY></TABLE></DIV><DIV id=enemy1style="LEFT: 300px; WIDTH: 100px; POSITION: absolute; TOP: 330px; HEIGHT: 20px; BACKGROUND-COLOR: #000099; layer-background-color: #000099"><TABLE height=20 width=100><TBODY><TR><TD> </TD></TR&
26、gt;</TBODY></TABLE></DIV><DIV id=enemy2style="LEFT: 70px; WIDTH: 30px; POSITION: absolute; TOP: 320px; HEIGHT: 60px; BACKGROUND-COLOR: #000099; layer-background-color: #000099"><TABLE height=60 width=30><TBODY><TR><TD> </TD></TR>&
27、lt;/TBODY></TABLE></DIV><DIV id=enemy3style="LEFT: 67px; WIDTH: 60px; POSITION: absolute; TOP: 67px; HEIGHT: 60px; BACKGROUND-COLOR: #000099; layer-background-color: #000099"><TABLE height=60 width=60><TBODY><TR><TD> </TD></TR></T
28、BODY></TABLE></DIV><TABLE cellSpacing=0 cellPadding=0 border=0><!- row 1 -><TBODY><TR bgcolor="#333333"><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBOD
29、Y></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD&g
30、t;<TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50&
31、gt;<TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY>
32、;<TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row 2 -><TR><TD width=50 bgColor=#333333 height=50&g
33、t;<TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50>&
34、lt;TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><
35、;TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD>
36、</TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR>&
37、lt;/TBODY></TABLE></TD></TR><!- row 3 -><TR><TD width=50 bgColor=#333333 height=50><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><
38、TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD>
39、;</TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></
40、TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></
41、TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row 4 -><TR><TD width=50 bgColor=#333333 height=50><TABLE><TBODY><TR><TD class="sty
42、le1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD><
43、/TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TA
44、BLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD wid
45、th=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row
46、5 -><TR><TD width=50 bgColor=#333333 height=50><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBOD
47、Y></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD&g
48、t;<TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50&
49、gt;<TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50 bgColor=#333333><TABLE
50、><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row 6 -><TR><TD width=50 bgColor=#333333 height=50><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE&
51、gt;</TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=5
52、0 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE>
53、<TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><T
54、D></TD></TR></TBODY></TABLE></TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row 7 -><TR><TD width=50 bgColor=#333333 height=50&g
55、t;<TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50>&
56、lt;TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><
57、;TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD>
58、</TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR>&
59、lt;/TBODY></TABLE></TD></TR><!- row 8 -><TR><TD width=50 bgColor=#333333 height=50><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><
60、TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD>
61、;</TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></
62、TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></
63、TD><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD></TD></TR></TBODY></TABLE></TD></TR><!- row 9 -><TR bgcolor="#333333"><TD width=50 height=50 bgColor=#333333><TABLE><TBODY><TR><TD class="style1"></TD></TR></TBODY></TABLE></TD><TD width=50 height=50><TABLE><TBODY><TR>
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中学各科室工作制度
- 传染病检测工作制度
- 人大代陪同工作制度
- 骨科理疗配合护理
- 动态组轮班工作制度
- 化妆品车间工作制度
- 区政府语言工作制度
- 医共体相关工作制度
- 医生事业编工作制度
- 医院置物室工作制度
- 2025至2030中国海上保险行业发展趋势分析与未来投资战略咨询研究报告
- 卤素钙钛矿金属-有机框架复合材料光催化性能的多维度探究与前景展望
- 2025年江西省从“五方面人员”中选拔乡镇领导班子成员考试历年参考题库含答案详解(5套)
- 2025年中国银行秋招试题及答案
- 2025年11月济南轨道交通集团运营有限公司社会招聘笔试参考题库附带答案详解(10套)
- 义警规章管理制度
- 2025年广东省深圳市福田区中考三模英语试题(含答案)
- CJ/T 409-2012玻璃钢化粪池技术要求
- DB31/T 668.4-2012节能技术改造及合同能源管理项目节能量审核与计算方法第4部分:锅炉系统
- (二模)黄山市及宣城市2025届高三毕业班质量检测 英语试卷(含答案)
- 小托福阅读:题型解析与应对策略
评论
0/150
提交评论