-
Notifications
You must be signed in to change notification settings - Fork 0
/
8b.html
43 lines (38 loc) · 1.3 KB
/
8b.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
<!DOCTYPE html>
<html>
<head>
<title>Patient management system</title>
</head>
<body>
<h1>Welcome to the patient management system of <span id="hos1"></span> hopsital</h1>
<p>This is a branch of <span id="hos"></span> hospital located in <span id="ar"></span> of southern bangalore</p>
<table border="1">
<tr>
<td><span onmouseover="cal(this)" onmouseout="cal1(this)">Patients Details</span></td>
<td><textarea cols="40" rows="10" id="d1"></textarea></td>
</tr>
</table>
<script type="text/javascript">
var pat={
"name":"ashay",
"AN":"6881",
"test":['BT','ECHO','CT']
};
var hos={
"name":"Narayana Hrudayala",
"Location":"Richmond Town"
};
document.getElementById('hos1').innerHTML=hos['name'];
document.getElementById('hos').innerHTML=hos['name'];
document.getElementById('ar').innerHTML=hos['Location'];
function cal(x){
x.style.color='blue';
document.getElementById('d1').innerHTML="Name of the Patient is "+pat['name']+" admitted in "+hos['name']+" has the AN :"+pat['AN']+" and has been conducted with these scans :"+pat['test'][0]+" "+pat['test'][1]+" "+pat['test'][2];
}
function cal1(x){
x.style.color='black';
document.getElementById('d1').innerHTML='';
}
</script>
</body>
</html>