-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconstantfooter.html
97 lines (86 loc) · 3.09 KB
/
constantfooter.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<title>Constant Footer Example</title>
<link rel="stylesheet" type="text/css" href="optional.css">
<style type="text/css">
/* Optional styles */
#footer {
background-color: Black;
background-image: url(horizontal.png);
background-position: center center;
color: #F2F0F0;
font-size: 0.6em;
}
#footer .item {
width: 90%;
margin: 0 auto;
}
#footer .description {
height: 7.5em;
line-height: 1.5em;
overflow: hidden;
}
#footer a {
color: Yellow;
}
#footer a:hover {
color: Green;
}
</style>
</head>
<body>
<div id="links">
<p>This is the live demo, <a href="http://www.stevefenton.co.uk/Content/Jquery-Constant-Footer/">view the documentation</a>.
Written by <a href="http://www.stevefenton.co.uk/">Steve Fenton</a>.</p>
</div>
<div id="header">
<h1>Constant Footer Example</h1>
</div>
<div id="maincontent">
<div id="what">
<h2>Constant Footer Summary</h2>
<p>The jQuery Contant Footer is a plugin that glues a footer to the bottom of the browser window.</p>
<p>It also has an option to display articles from an RSS feed located on the same website (or loaded via a proxy on the same website).</p>
</div>
<div id="how">
<p>Please <a href="http://www.stevefenton.co.uk/Content/Jquery-Constant-Footer/">read the constant footer documentation</a>
for instructions on how to use the plugin.</p>
</div>
<div id="options">
<h2>Options</h2>
<dl>
<dt>classmodifier</dt>
<dd>Used to apply class names to the elements created by the plugin. You only need to specify a class modifier if you have a name-clash.</dd>
<dt>feed</dt>
<dd>The full web address of an RSS feed, which must be on the same domain (otherwise you'll hit cross-site-scripting issues).</dd>
<dt>feedlink</dt>
<dd>The text to be displayed on the feed links, for example "Read More"</dd>
<dt>opacity</dt>
<dd>Set this to a value less than "1" to make the footer semi-transparent, for example "0.8".</dd>
<dt>showclose</dt>
<dd>Set to "true" to show a button that closes the footer.</dd>
<dt>closebutton</dt>
<dd>Any HTML string to show on the close button, for example "close", "[x]" or '<img src="close.png" alt="Close">'.</dd>
</dl>
</div>
</div>
<div id="footer">
<p><a href="http://www.stevefenton.co.uk/Content/Blog/">Read Steve Fenton's Blog</a> or
<a href="http://www.stevefenton.co.uk/RSS/Blog/">Subscribe to the RSS feed</a></p>
</div>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.constantfooter.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#footer").constantfooter({ feed: "http://www.stevefenton.co.uk/RSS/Blog/", showclose: true });
});
</script>
<!-- Just for web stats... not needed for the plugin -->
<script type="text/javascript">
var myMasterUri = "http://www.stevefenton.co.uk/";
var myStatUrl = "http://www.stevefenton.co.uk/reports/";
</script>
<script type="text/javascript" src="/reports/swiftstats.js"></script>
</body>
</html>