-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
36 lines (34 loc) · 1.32 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
<html>
<head>
<title>Plugin Test</title>
<script src="jquery.1.3.2.min.js"></script>
<script src="jquery.slidingmessage.min.js"></script>
<script>
$(function() {
// on first button click, use all the defaults
$('#button1').click(function(){
$.showMessage("This is the default behavior");
return false;
});
// this time use ALL the options
$('#button2').click(function(){
var options = {id: 'message_from_top',
position: 'top',
size: 50,
backgroundColor: 'rgba(70, 70, 70, 0.8)',
delay: 1500,
speed: 500,
fontSize: '30px'
};
$.showMessage("This is with options!", options);
return false;
});
});
</script>
</head>
</html>
<body>
<h1>Sliding Message Plugin Demo</h1>
<button id="button1">See default behavior</button>
<button id="button2">See with options</button>
</body>