-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (70 loc) · 2.05 KB
/
index.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
76
77
78
79
80
81
82
83
84
85
86
<html>
<head>
<meta name="viewport" content="user-scalable=no, width=device-width" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/load.js"></script>
<link rel="stylesheet" type="text/css" href="screen.css" />
<script type="text/javascript">
var slideimages = new Array() // create new array to preload images
slideimages[0] = new Image() // create new instance of image object
slideimages[0].src = "files/pictures/first.gif" // set image src property to image path, preloading image in the process
slideimages[1] = new Image()
slideimages[1].src = "files/pictures/second.gif"
slideimages[2] = new Image()
slideimages[2].src = "files/pictures/third.gif"
</script>
<title>Notice Board</title>
</head>
<body>
<div id="container">
<div id="header">
<h1><a href="./index.html">Notice Board</a></h1>
<div id="nav">
Notice Board - University of Peradeniya
</div>
</div>
<div id="main">
<div id="topic"></div>
<div id="content"></div>
</div>
<div id="sidebar">
<div id="notice1">
<p>Wait</p>
</div>
</div>
<div id="footer">
<ul>
<li><a href="services.html">Services</a></li>
<li><a href="about.html">About</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
<div id="subtle">input</div>
</div>
</div>
<div id=slideshow >
<div class=b></div>
<h1 style="text-align:center">University of peradeniya<h1>
<img src="first.gif" id="slide" width=100% height=70% />
</div>
<script type="text/javascript">
//$("#b").html("<h3>"+batch+"<h3>");
//variable that will increment through the images
var step=0
//$('.b').html(batch);
//document.getElementById('b').src = step
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.getElementById('slide').src = slideimages[step].src
if (step<2)
step++
else
step=0
//call function "slideit()" every 2.5 seconds
setTimeout("slideit()",2500)
}
slideit()
</script>
</body>
</html>