-
Notifications
You must be signed in to change notification settings - Fork 17
/
jsrunner.html
66 lines (64 loc) · 2.08 KB
/
jsrunner.html
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
<html>
<head>
<title>Runner</title>
</head>
</body>
<!-- ASCIIMATION : jsrunner (begin) http://asciimator.net/asciimator#ASCIImator3-->
<table style="cursor:crosshair;" cellpadding=0 cellspacing=0 onmouseover="window.status='made in asciimator.net';" onmouseout="window.status='';" onclick="window.location.href='http://www.asciimator.net';">
<tr><td>
<div id="jsrunner_div">
<pre id="jsrunner_id"> </pre>
</div>
</td></tr>
</table>
<script>
function run_jsrunner(){
title="";
ffamily="courier new";
fsize=12;
bgcolor="#FFFFFF";
fcolor="#000000";
speed=100;
looped=true;
fwidth=20;
fheight=10;
lh="120%";
document.getElementById("jsrunner_id").title=title;
if(document.getElementById("jsrunner_id")){
output=document.getElementById("jsrunner_id").style;
outputdiv=document.getElementById("jsrunner_div").style;
output.fontFamily=ffamily;
output.fontSize=fsize;
output.backgroundColor=bgcolor;
output.color=fcolor;
output.lineHeight=lh;
output.height=outputdiv.height=fheight*fsize*1.2;
output.width=outputdiv.width=fwidth*fsize*0.63;
}
if (navigator.userAgent.match(/MSIE/) && !navigator.userAgent.match(/Opera/)){
for (i=0; i<jsrunner.length; i++){
jsrunner[i]=jsrunner[i].replace(/\n/g,'\n\r');
}
}
fr_jsrunner=0;
setInterval(animate_jsrunner,speed,fr_jsrunner);
}
function animate_jsrunner(){
if (fr_jsrunner>jsrunner.length-1){
fr_jsrunner=0;
}
document.getElementById("jsrunner_id").childNodes[0].data=jsrunner[fr_jsrunner];
fr_jsrunner++;
}
var jsrunner= new Array();
jsrunner[0]=" (+)\n \/|\\_\n \\+\n _\/ \\\n \' |_";
jsrunner[1]=" (+)\n \/|\\\n |+ \\\n __\/ \\\n |_";
jsrunner[2]=" (+)\n ,-|\\\n | +|\n __\/ \\\n \/_";
jsrunner[3]=" (+)\n ,-|\n | +\\\n _|\\\n \/_";
jsrunner[4]=" (+)\n ,-|\n | +\\\n |\\\n \'\/_";
jsrunner[5]=" (+)\n \/|\n \\+\\\n |\\\n \'\/_";
run_jsrunner();
</script>
<!-- ASCIIMATION : jsrunner (end)-->
</body>
</html>