Skip to Navigation or Skip to Content

Steve Fenton
Author of The Reason Your Website Sucks

Jquery Constant Footer

You Are Here: Home » JavaScript » Constant Footer

Jquery Constant FooterQuick Links

Visit the jQuery constant footer project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Description

The jQuery Constant Footer project is a plugin for the jQuery JavaScript Framework, which glues a footer to the bottom of the browser window. It can also optionally display a scroll of articles from an RSS feed on the same domain.

Requirements

CSS

  1. /* Optional styles */
  2.  
  3. #footer {
  4. background-color: Black;
  5. color: #F2F0F0;
  6. font-size: 0.6em;
  7. }
  8.  
  9. #footer .item {
  10. width: 90%;
  11. margin: 0 auto;
  12. }
  13.  
  14. #footer .description {
  15. height: 7.5em;
  16. line-height: 1.5em;
  17. overflow: hidden;
  18. }
  19.  
  20. #footer a {
  21. color: Yellow;
  22. }
  23.  
  24. #footer a:hover {
  25. color: Green;
  26. }

JavaScript

  1. $("#footer").constantfooter();

With all options set:

  1. $("#footer").constantfooter({
  2. "classmodifier": "constantfooter",
  3. "feedlink": "Read more »",
  4. "opacity": "0.8",
  5. "closebutton": "[x]",
  6. "feed": "http://www.stevefenton.co.uk/RSS/Blog/",
  7. "showclose": "true"
  8. });