-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJavascriptSpeedup
43 lines (33 loc) · 1.41 KB
/
JavascriptSpeedup
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
#goes in body of landing for onload function
<body style="background-color:#262626; position: fixed; width: 99.5%; height: 100%; left: -10" onload="function()">
#goes in header repeatedly as needed for the links
<td align="center">
<div class="img-overlay" id="main">
<a href='#'>
<h2>MAIN</h2>
</a>
</div>
</td>
#the main js that redirects the links to their actual locations
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
$("#main").click(function(){
$("#data").load("html/main.html");});
$("#networking").click(function(){
$("#data").load("html/networking.html");});
$("#servers").click(function(){
$("#data").load("html/servers.html");});
$("#hardware").click(function(){
$("#data").load("html/hardware.html");});
$("#programming").click(function(){
$("#data").load("html/programming.html");});
$("#links").click(function(){
$("#data").load("html/links.html");});
$("#sitemap").click(function(){
$("#data").load("html/sitemap.html");});
</script>
#the default landing page
<script type="text/javascript">
$("#main").ready(function(){
$("#data").load("html/main.html");});
</script>