-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
54 lines (45 loc) · 1.13 KB
/
test.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
<html>
<head>
<style>
div.background {
background: url(hp12cp.png);
opacity:1;
color: green;
border: 2px solid black;
z-index: 0;
}
div.transbox {
position: absolute;
opacity: 0.9;
}
div.transbox p {
font-weight: bold;
color: red;
/*#000000;*/
}
span.hpkey {
padding: 0;
margin: 0;
color: black;
opacity: 1;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
font-size: 30px;
}
</style>
<script type="text/javascript">
function myfunc() {
alert( "heloooooooooo" );
}
function calcfunc() {
alert( "naheeeeeeee" );
}
</script>
</head>
<body>
<div class="background" tabindex="1" onclick="calcfunc()" style="background-color:gray; position: relative; height: 370px; width: 600px; margin: auto">
<div class="transbox" id="N" onclick="myfunc()" style="background-color:lightblue; left: 42px; top:136px; height: 32px; width: 34px; z-index: 1;"> </div>
<div class="transbox" id="I" style="background-color:green; left: 97px; top:136px; height: 32px; width: 34px; z-index: 1;"> </div>
</div>
</body>
</html>