forked from shrrub-secret/sap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo2.html
66 lines (54 loc) · 1.01 KB
/
demo2.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
61
62
63
64
65
66
<html>
<head>
<title>Sap</title>
<style>
body {
width: 750px;
margin: 25px auto;
height: 5000px;
}
#header {
background: pink;
border: 1px solid black;
width: 700px;
height: 50px;
}
#content {
background: lightblue;
margin-top: 25px;
border: 1px solid black;
width: 500px;
height: 1200px;
float: left;
}
#sidebar {
float: left;
height: 800px;
margin-left: 23px;
margin-top: 25px;
overflow: hidden;
}
</style>
<script charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="jquery.sap.js"></script>
<script>
$(document).ready(function()
{
$('#image').sap({distanceFromTheTop: 75, distanceFromTheBottom: 3000});
});
</script>
</head>
<body>
<div id="header">
<h1>Put a Header here</h1>
</div>
<div id="content">
<p>Put Content Here</p>
</div>
<div id="sidebar">
<div id="image">
<img src="http://placekitten.com/150/300" />
</div>
</div>
</body>
</html>