jPolaroid is a jQuery plugin, which turns your boring images into fun, customizable Polaroid style images! It is simple to use and very clean. Download the tarball, or zip, view the examples, then start adding some retro style to your webpages.
Requires jQuery 1.3.x.
Download jPolaroid 1.1

The development code is kept at GitHub at http://github.com/steveram/jpolaroid
Include the css and js file, along with the jQuery library. Don't forget to change the paths to your image directory in the css file.
<script type="text/javascript" src="path_to_js/jquery.js"></script>
<script type="text/javaScript" src="path_to_js/jquery.jpolaroid.js"></script>
<link rel="stylesheet" href="path_to_css/jpolaroid.css" type="text/css"/>
1. The simplest way to use jPolaroid is to call polaroid() on any image element:
<img id = "jquery" src = "_images/jquery-logo.gif"></img>
$(document).ready(function(){
$('#jquery').polaroid();
});
2. You can also pass in options into the polaroid function:
<img id = "sanfran" src = "_images/san-francisco.jpg"></img>
$(document).ready(function(){
$('#sanfran').polaroid({
tape:true,
shadowPos: "top-left",
bottom: "50px",
top: "22px",
left: "24px",
right: "24px",
shadowColor: "#CCCCCC",
backgroundColor: "#FDFDFD"
});
});
3. Here is a list of all possible options you can pass:
| Option | Parameters | Default |
|---|---|---|
| tape | true | false | true |
| shadowPos | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "bottom-right" |
| top | [pixel value] | "22px" |
| bottom | [pixel value] | "33px" |
| right | [pixel value] | "27px" |
| left | [pixel value] | "27px" |
| shadowColor | [hex value] | "#CCCCCC" |
| backgroundColor | [hex value] | "#FDFDFD" |
Code ©2009 Steven Ramkumar MIT License