-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (68 loc) · 1.99 KB
/
Copy pathindex.html
File metadata and controls
73 lines (68 loc) · 1.99 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
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Notice Message Plugin</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="src/jquery.noticeMsg.js"></script>
<link type="text/css" rel="stylesheet" href="src/jquery.noticeMsg.css" />
<style type="text/css">
html, body {
height: 100%;
}
#container {
float: right;
width: 50%;
height: 250px;
border: 1px solid #aaaaaa;
background: #eeeeee;
position: relative;
}
.box {
position: relative;
float: left;
width: 300px;
height: 150px;
border: 1px solid #aaaaaa;
background: #eeeeee;
margin: 10px;
}
</style>
<script type="text/javascript">
function normalMsg() {
$('body').noticeMsg('Normal Message');
// or $.noticeMsg('test');
}
function updateMsg() {
$('body').noticeMsg('Updating...', {dur: false});
setTimeout(function(){
$.noticeMsg('Complete!');
}, 1000);
}
function insideMsg() {
$('#container').noticeMsg('Inside Message');
}
function boxMsg() {
$('.box').noticeMsg('Inside Message');
}
</script>
</head>
<body>
<h1>Notice Message Plugin</h1>
<p>Notice Message Plugin is jQuery Plugin inspired by Oleg Slobodskoi's humanized messages plugin.<br />
<a href="http://jsui.de/projects/humanizedmessages/">http://jsui.de/projects/humanizedmessages/</a></p>
<div id="container">
Contaier
</div>
<ul>
<li><a href="javascript:normalMsg();">normal message</a></li>
<li><a href="javascript:updateMsg();">update sample</a></li>
<li><a href="javascript:insideMsg();">message inside of a container</a></li>
<li><a href="javascript:boxMsg();">message inside of boxes</a></li>
</ul>
<br clear="all" />
<div class="box">box</div>
<div class="box">box</div>
<div class="box">box</div>
</body>
</html>