-
Notifications
You must be signed in to change notification settings - Fork 0
/
example1.html
60 lines (54 loc) · 1.76 KB
/
example1.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
59
60
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="JQuery Background Slideshow">
<meta name="keywords" content="JQuery, background">
<meta name="creator" content="Sunil Samuel">
<meta name="copyright" content="Sunil Samuel">
<meta name="version" content="$LastChangedRevision: 1122 $">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="../src/js/jquery-bg-slideshow.js"></script>
<link rel="stylesheet" href="../src/css/jquery-bg-slideshow.css">
<script type="text/javascript">
$(function() {
$(".bg").bgSlideShow({
current : 1,
debug : false,
randomize : true,
initialBackground : 'random',
});
});
</script>
<style type="text/css">
.bg {
height: 200px;
width: 100%;
border: 1px solid rgb(200, 200, 200);
background-color: white;
color: white;
font-size: 30pt;
align-items: center;
justify-content: center;
display: flex;
text-align: center;
}
.jquery-bg-slideshow-wrap-bg-element {
height: 200px;
}
</style>
<title>JQuery Background Slideshow Example 1 (Single Element)</title>
</head>
<body>
<div style="height: 30px;">This is just a div without any
background to show that this plugin does not impact any elements
before it</div>
<div class='bg' data-images="gfx/bar.jpg,gfx/clouds.jpg,gfx/swirls.jpg"
data-debug="false">This is some data inside the element where
the background changes.</div>
<div style="height: 30px;">This is a div after the background div
to show that this plugin does not impact any elements after it</div>
</body>
</html>