-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
75 lines (65 loc) · 1.42 KB
/
home.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
<html>
<head><meta charset="utf-8"/>
<style>
nav {
float: left;
width: 20%;
height:400px;
background: #ccc;
padding: 20px;
}
/* Style the list inside the menu */
nav ul {
list-style-type: none;
padding: 0;
}
article {
float: left;
padding: 20px;
width: 70%;
background-color: #f1f1f1;
height: 400px;
}
</style>
</head>
<body><br><h3><center>Unified Order Management System</center></h3>
<section>
<nav>
<ul>
<li id="p1" onclick=function1()><a href="#">Consumer</a></li>
<li onclick=function2()><a id="p2" href="#"></a></li>
<li><a id="p3" href="postpaid.html" target="if1"></a></li>
</ul>
</nav>
<article>
<iFrame name="if1" style="width:100%; height:100%">
<ul>
<li><a href="#home">Card Reader</a></li>
<li><a href="#news">News</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#about">About</a></li>
</ul>
</iframe>
</article>
</section>
<script>
function function1(){
var i=0;
do{
var node= document.createElement("li");
var textnode= document.createTextNode("Mobile");
node.appendChild(textnode);
document.getElementById("p2").appendChild(node);
i++;
}
while(i<1)
}
function function2(){
var node= document.createElement("li");
var textnode= document.createTextNode("Postpaid");
node.appendChild(textnode);
document.getElementById("p3").appendChild(node);
}
</script>
</body>
</html>