This repository has been archived by the owner on May 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
45 lines (43 loc) · 1.76 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<title>jquery-backgrounder v1.0</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<style>
html {
background-color: #000000;
}
body {
color:#efefef;
font-size:12px;
font-family: "Helvetica", sans-serif;
}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="js/jquery.backgrounder.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function()
{
var images = [
"http://farm1.static.flickr.com/133/333784956_56749ca56c_b.jpg",
"http://farm1.static.flickr.com/141/333785078_72166a0c09_z.jpg?zz=1",
"http://farm1.static.flickr.com/147/333004440_f3889a07dc_z.jpg?zz=1"
];
$.backgrounder( images, {
displayTime:5000, // the time in ms how long an image is displayed. Default is 5000.
transitionTime:1500, // the duration in ms for a transition. Default is 1600.
centeredX: true, // Should the image be centered on the X axis? Default to true.
centeredY: true, // Should the image be centered on the Y axis? Default is true.
zIndex: -666 // The css z-index property of the photos. Default is -666.
});
});
</script>
</head>
<body>
<div id="overlay" style="background: url('img/black_dots.png'); left:0px; top:0px; width:100%; height:100%; position:absolute; z-index:-1;"></div>
<div id="welcome" style="background-color:hsla(0, 0%, 0%, .6);padding:10px;margin-top: 50px;-moz-box-shadow: 2px 2px 20px #222;-webkit-box-shadow: 2px 2px 20px #222;box-shadow: 2px 2px 20px #222;">
<h1 id="jquery_backgrounder_plugin">jquery-backgrounder plugin</h1>
<p><em>by Nico Di Rocco</em></p>
</div>
</body>
</html>