-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleft.html
More file actions
44 lines (43 loc) · 1.13 KB
/
left.html
File metadata and controls
44 lines (43 loc) · 1.13 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>left frame</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
// クリックしたら
$(".link").click(function() {
// ローディング要素を表示して
$("#loading").show();
// 先に非同期で画面を取得
$.get($(this).prop("href"), function() {
// ローディング要素を消す
$("#loading").fadeOut();
});
});
});
</script>
<style type="text/css">
<!--
#loading {
display: none;
position: absolute;
top: 200px;
left: 50px;
z-index: 100;
background-color:#fff;
}
//-->
</style>
</head>
<body>
<h1>リンク</h1>
<hr>
<div id="loading"><img src="gif-load.gif"/><br/>Now Loading...</div>
<ul>
<li><a href="link1.html" target="contents" class="link">リンク1</a></li>
<li><a href="link2.html" target="contents" class="link">リンク2</a></li>
</ul>
</body>
</html>