-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
executable file
·466 lines (214 loc) · 8.28 KB
/
index.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<title>Gyrobot</title>
<meta name="Description" content="The Official Team Gyrobot Web Site. A Robot Wars entry.">
<meta name="Microsoft Theme" content="gyrobot 111, default">
<meta name="Microsoft Border" content="b">
</head>
<body background="_themes/gyrobot/cartoon-small.jpg" bgcolor="#FF9900" text="#330033" link="#009900" vlink="#996600" alink="#FF0066"><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><!--msnavigation--><td valign="top"><!--mstheme--><font face="Arial, Helvetica">
<div id="dot0" style="position: absolute; visibility: hidden; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot1" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot2" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot3" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot4" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot5" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><div id="dot6" style="position: absolute; height: 40; width: 40;">
<dd><img src="images/bullet.gif" height="40" width="40"></dd>
</div><script LANGUAGE="JavaScript">
<!-- Original: Philip Winston ([email protected]) -->
<!-- Web Site: http://members.xoom.com/ebullets -->
<!-- 'Scrolling Fix' by Troels Jakobsen <[email protected]> -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
var nDots = 7;
var Xpos = 0;
var Ypos = 0;
var DELTAT = .01;
var SEGLEN = 40;
var SPRINGK = 10;
var MASS = 1;
var GRAVITY = 50;
var RESISTANCE = 10;
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 40;
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
var followmouse = true;
var dots = new Array();
init();
function init() {
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
// I only know how to read the locations of the
// <LI> items in IE
//skip this for now
// setInitPositions(dots)
}
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
startanimate();
} else {
// let dots sit there for a few seconds
// since they're hiding on the real bullets
setTimeout("startanimate()", 3000);
}
}
function dot(i) {
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetscape) {
this.obj = eval("document.dot" + i);
} else {
this.obj = eval("dot" + i + ".style");
}
}
function startanimate() {
setInterval("animate()", 20);
}
function setInitPositions(dots) {
var startloc = document.all.tags("LI");
var i = 0;
for (i = 0; i < startloc.length && i < (nDots - 1); i++) {
dots[i+1].X = startloc[i].offsetLeft
startloc[i].offsetParent.offsetLeft - DOTSIZE;
dots[i+1].Y = startloc[i].offsetTop +
startloc[i].offsetParent.offsetTop + 2*DOTSIZE;
}
dots[0].X = dots[1].X;
dots[0].Y = dots[1].Y - SEGLEN;
}
function MoveHandler(e) {
Xpos = e.pageX;
Ypos = e.pageY;
return true;
}
function MoveHandlerIE() {
Xpos = window.event.x + document.body.scrollLeft;
Ypos = window.event.y + document.body.scrollTop;
}
if (isNetscape) {
document.captureEvents(Event.MOUSEMOVE);
document.onMouseMove = MoveHandler;
} else {
document.onmousemove = MoveHandlerIE;
}
function vec(X, Y)
{
this.X = X;
this.Y = Y;
}
// adds force in X and Y to spring for dot[i] on dot[j]
function springForce(i, j, spring)
{
var dx = (dots[i].X - dots[j].X);
var dy = (dots[i].Y - dots[j].Y);
var len = Math.sqrt(dx*dx + dy*dy);
if (len > SEGLEN) {
var springF = SPRINGK * (len - SEGLEN);
spring.X += (dx / len) * springF;
spring.Y += (dy / len) * springF;
}
}
function animate() {
var start = 0;
if (followmouse) {
dots[0].X = Xpos;
dots[0].Y = Ypos;
start = 1;
}
for (i = start ; i < nDots; i++ ) {
var spring = new vec(0, 0);
if (i > 0) {
springForce(i-1, i, spring);
}
if (i < (nDots - 1)) {
springForce(i+1, i, spring);
}
var resist = new vec(-dots[i].dx * RESISTANCE, -dots[i].dy * RESISTANCE);
var accel = new vec((spring.X + resist.X)/ MASS, (spring.Y + resist.Y)/ MASS + GRAVITY);
dots[i].dx += (DELTAT * accel.X);
dots[i].dy += (DELTAT * accel.Y);
if (Math.abs(dots[i].dx) < STOPVEL &&
Math.abs(dots[i].dy) < STOPVEL &&
Math.abs(accel.X) < STOPACC &&
Math.abs(accel.Y) < STOPACC) {
dots[i].dx = 0;
dots[i].dy = 0;
}
dots[i].X += dots[i].dx;
dots[i].Y += dots[i].dy;
var height, width;
if (isNetscape) {
height = window.innerHeight + document.scrollTop;
width = window.innerWidth + document.scrollLeft;
} else {
height = document.body.clientHeight + document.body.scrollTop;
width = document.body.clientWidth + document.body.scrollLeft;
}
if (dots[i].Y >= height - DOTSIZE - 1) {
if (dots[i].dy > 0) {
dots[i].dy = BOUNCE * -dots[i].dy;
}
dots[i].Y = height - DOTSIZE - 1;
}
if (dots[i].X >= width - DOTSIZE) {
if (dots[i].dx > 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = width - DOTSIZE - 1;
}
if (dots[i].X < 0) {
if (dots[i].dx < 0) {
dots[i].dx = BOUNCE * -dots[i].dx;
}
dots[i].X = 0;
}
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
}
// End -->
</script>
<!-- Script Size: 6.05 KB -->
<p align="center"><a href="home.htm"><img src="images/title-large.gif" alt="Enter Site" border="0" WIDTH="729" HEIGHT="195"></a></p>
<p align="center"> </p>
<h1 align="center"><!--mstheme--><font face="Trebuchet MS, Arial, Helvetica" color="#660066"><font size="5" face="Arial">Welcome to The Official Team Gyrobot Web
Site.</font><!--mstheme--></font></h1>
<h1 align="center"><!--mstheme--><font face="Trebuchet MS, Arial, Helvetica" color="#660066"><font size="5" face="Arial">A Robot Wars entry for series 6
onwards from Swindon, Wilts, UK.</font><!--mstheme--></font></h1>
<p align="center"><a href="home.htm"><font size="5" face="Arial">[ENTER SITE]</font></a> </p>
<p align="center"> <!--mstheme--></font><!--msnavigation--></td></tr><!--msnavigation--></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><!--mstheme--><font face="Arial, Helvetica">
<p align="center"> </p>
<p align="center">"Gyrobot" - The robot and website is the creation of :-</p>
<dl>
<div align="center"><center>
<dt><a href="http://www.gyrobot.co.uk"><img src="images/logos/gyrobotlogo.png" alt="gyrobotlogo.png" border="0" width="100" height="100"></a></dt>
</center></div><div align="center"><center>
<dt>Gyrobot Ltd.</dt>
</center></div><div align="center"><center>
<dt><a href="http://www.gyrobot.co.uk">www.gyrobot.co.uk</a></dt>
</center></div>
</dl>
<p align="center">"Plagiary is the lowest form of imagination but the highest
compliment - HANDS OFF OUR BOTS"</p>
<p align="center"><nobr>[ Title ]</nobr> <nobr>[ <a href="home.htm">Home</a> ]</nobr> <nobr>[ <a href="design.htm">The Design</a> ]</nobr> <nobr>[ <a href="diary.htm">The Build Diary</a> ]</nobr> <nobr>[ <a href="gallery.htm">Gallery</a> ]</nobr> <nobr>[ <a href="testing.htm">Testing</a> ]</nobr> <nobr>[ <a href="specs.htm">Specifications</a> ]</nobr> <nobr>[ <a href="team.htm">The Team</a> ]</nobr> <nobr>[ <a href="guest.htm">Guestbook</a> ]</nobr> <nobr>[ <a href="links.htm">Links</a> ]</nobr> <nobr>[ <a href="contact.htm">Contact Info</a> ]</nobr> <nobr>[ <a href="sitemap.htm">Site Map</a> ]</nobr></p>
<!--mstheme--></font></td></tr><!--msnavigation--></table></body>
</html>