-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
58 lines (44 loc) · 1.7 KB
/
demo.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jquery.throbbo DEMO</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.throbbo.js"></script>
<style type="text/css">
img { border: none; }
p { margin:5px;}
#ex1 { width:100px; height:100px;border:1px solid #ccc; background-color:#f1f1f1; }
</style>
<script type="text/javascript">
$(document).ready(function(){
$('#ex1').click(function(){
$(this).throbbo({
duration: 2000,
image: 'throbber.gif'
});
return false;
});
$('#ex2').click(function(){
$(this).throbbo({
mode: 'insertBefore',
duration: 5000,
image: 'throbber.gif',
styles: { margin: '0 5px'}
});
return false;
});
});
</script>
</head>
<body>
<h2>Mode: overlay</h2>
<div id="ex1">
<p>
Click me to show overlay spinner for 2 sec.
</p>
</div>
<h2>Mode: insertBefore</h2>
<p>If you click <a href="#" id="ex2">this</a> link, a throbber will be inserted before the link and show for 5 sec.</p>
</body>
</html>