-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathplayer.html
144 lines (141 loc) · 3.37 KB
/
player.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
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>z0r</title>
<script type="text/javascript">
function load_iframe() {
var file = 'swf-files/' + i + '.swf';
document.getElementById('object').data = file;
var source = document.getElementById('source');
source.href = "http://www.z0r.de/" + i;
source.innerHTML = source.href
var index = document.getElementById('index');
var pagenum = Math.floor(i / 100) + 1;
index.href = "http://index.z0r.de/Seite" + pagenum + ".html";
index.innerHTML = "Index"
}
function unload_iframe() {
document.getElementById('object').data = '';
}
function jump(num) {
i = num;
load_iframe();
}
function next() {
i++;
load_iframe();
window.location.hash = "#" + i;
document.getElementById('number').textContent = i;
}
function prev() {
i--;
load_iframe();
window.location.hash = "#" + i;
document.getElementById('number').textContent = i;
}
function keypress(e) {
var event = window.event ? window.event : e;
if (true) {
if (event.keyCode == 39) {
// RIGHT ARROW
next();
}
else if (event.keyCode == 37) {
// LEFT ARROW
prev();
}
else if (event.keyCode == 13) {
// ENTER
jump(document.getElementById('number').textContent);
}
else if (event.keyCode == 32) {
// SPACEBAR
next();
}
else if (event.keyCode == 27) {
// ESCAPE
unload_iframe();
}
}
}
var i = window.location.hash.replace("#", "");
if (!i) {
i = 1;
}
document.onkeydown = keypress;
function init() {
load_iframe();
document.getElementById('number').textContent = i;
}
</script>
<style type="text/css">
body {
color:red;
background:black;
text-align:center;
font-family:helvetica;
}
#object{
border:none;
width:1620px;
height:880px;
}
#controls {
margin:0 auto;
width:240px;
padding:10px;
}
#controls span {
color:#500;
background:black;
border:thin solid #300;
box-shadow: 0px 0px 8px #300;
}
#controls:hover span {
color:#f00;
box-shadow: 0px 0px 8px #500;
border:thin solid #500;
}
.button {
display:inline-block;
text-align:center;
vertical-align:middle;
padding:4px;
margin:0px 0px 5px 0px;
height:15px;
width:52px;
font-size:14px;
cursor:pointer;
-moz-border-radius:4px;
-webkit-border-radius:4px;
border-radius:4px;
}
#controls:hover .button:hover {
border:thin solid red;
box-shadow: 0px 0px 8px #f00;
}
a {
color:#500;
text-decoration:none;
font-size:11px;
}
a:hover {
color:#f00;
}
</style>
</head>
<body onLoad="javascript:init();">
<object id="object" type="application/x-shockwave-flash" data=""></object>
<br>
<span id="controls">
<span class="button" onClick="javascript:unload_iframe();">STOP</span>
<span class="button" onClick="javascript:prev();"><<<</span>
<span class="button" id="number"></span>
<span class="button" onClick="javascript:next();">>>></span>
<span class="button" onClick="javascript:i=document.getElementById('number').value;load_iframe();">PLAY</span>
</span>
<a id="source" href="" target="_blank"></a>
<a id="index" href="" target="_blank"></a>
</body>
</html>