-
Notifications
You must be signed in to change notification settings - Fork 0
/
BAB 5_2.html
58 lines (53 loc) · 1.44 KB
/
BAB 5_2.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
<!DOCTYPE html>
<html lang="id">
<head>
<title>Latihan BAB 5.2</title>
<style>
body {
background-color: azure;
}
input[type="button"] {
background-color: #008cba;
color: #ffffff;
border: none;
border-radius: 20px;
padding: 10px 20px;
cursor: pointer;
margin-right: 10px;
transition: background-color 0.3s;
}
input[type="button"]:hover {
background-color: #005a80;
}
input[type="reset"] {
background-color: #ff0000;
color: #ffffff;
border: none;
border-radius: 20px;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="reset"]:hover {
background-color: #ff5555;
}
</style>
</head>
<body>
<script language="JavaScript" src="BAB 5_2.js"></script>
<form name="fform">
<h1>Perhitungan Bunga</h1>
<h3>Data Input :</h3>
<pre>
Saldo : <input type="text" size="20" name="saldo">
Bunga : <input type="text" size="3" name="bunga">%
Waktu : <input type="text" size="3" name="waktu">Bulan
</pre>
<input type="button" value="Submit" onclick="hitung()" />
<input type="reset" value="Reset" />
<pre>
Hasil Perhitungan : <br><textarea name="okomentar" rows="5" cols="50"></textarea>
</pre>
</form>
</body>
</html>