-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (46 loc) · 1.12 KB
/
Copy pathindex.html
File metadata and controls
46 lines (46 loc) · 1.12 KB
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
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, user-scalable=no" />
<head>
<script type="text/javascript">
function ajaxget(strURL) {
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if (window.XMLHttpRequest) {
self.xmlHttpReq = new XMLHttpRequest();
}
// IE
else if (window.ActiveXObject) {
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open('GET', strURL, false);
self.xmlHttpReq.send(null);
}
</script>
<style type="text/css">
input {
font-size: 150%;
height: 5em;
width: 5em;
text-align: center;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
margin: 1em;
}
div {
text-align: center;
}
</style>
</head>
<body>
<form>
<div>
<input value="Up" type="button" onclick="ajaxget('up')" />
</div>
<div>
<input value="Down" type="button" onclick="ajaxget('down')" />
</div>
</form>
</body>
</html>