Documentation & Demos
jSlider
Code Examples
html code needed
<!-- the slider content holder -->
<div class="slider">
<!-- the elements inside the slider, have as many as you want -->
<div>
<a href="#">
<img src="slider_01.jpg" width="600" height="350" border="0" />
</a>
</div>
<!-- the navigation can be placed ANYWHERE in your document -->
<a href="#" class="next">→</a>
<a href="#" class="prev">←</a>
</div><!-- slider -->
javascript code needed
$(document).ready(function(){
$(".slider").jSlider({elem:"div"});
});
optional css you can use for a base
.slider {width:600px; height:350px; margin:50px auto; position:relative;}
a.next, a.prev {color:#000; background-color:#eee; border:1px solid #fff; outline:1px solid #ccc; text-shadow:-1px -1px 0px #fff; text-decoration:none; z-index:99; padding:0px 5px; display:block; }
.next {position:absolute; right:-10px; top:50%;}
.prev {position:absolute; left:-10px; top:50%;}
a.inactive {color:#ccc; background-color:#fff; border:1px solid #eee; outline:none;}
/* ul.navi is the generated navigational bullets we generate, you can disable this */
ul.navi {list-style:none; position:absolute; bottom:10px; right:5px;}
ul.navi li {float:left; margin-right:5px;}
ul.navi li a {background-color:#CCC; display:block; height:10px; width:10px; text-indent:-9999px; outline:none; -moz-border-radius: 5px; border-radius: 5px;-webkit-box-shadow: 0px 0px 2px #000000;
-moz-box-shadow: 0px 0px 3px #000000;
box-shadow: 0px 0px 1px #000000; }
ul.navi li a.active {background-color:#fff;}
Documentation
The slider has a wide range of options you can choose to use. For custom animation transition effects you will need to embed the custom_animations.js. For custom easing in effects you will need to embed the custom_easing.js.
jTabs
Code Examples
html code needed
<ul class="tabs">
<li class="active"><a href="#">Tab 1</a></li>
<li><a href="#">Tab 2</a></li>
<li><a href="#">Tab 3</a></li>
</ul>
<div class="clear"></div>
<div class="tabs_content">
<div>Sample 1 content</div>
<div>Sample 2 content</div>
<div>Samplest content for the 3rd tabSamplest content for the 3rd tab</div>
</div><!-- tabs content -->
javascript code needed
$(document).ready(function(){
$("ul.tabs").jTabs({content: ".tabs_content"});
});
optional css you can use for a base
ul.tabs {list-style:none; width:500px;}
ul.tabs li:first-child {border-left:1px solid #ccc;}
ul.tabs li {float:left; border-right:1px solid #ccc; border-top:1px solid #ccc; background-color:#eee;}
ul.tabs li.active {border-bottom:1px solid #fff; background-color:#fff; margin-bottom:-1px;}
ul.tabs li a {display:block; padding:5px 10px; color:#777; letter-spacing:-1px; outline:none; text-decoration:none; font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;}
ul.tabs li.active a {font-weight:600; color:#000;}
div.tabs_content {width:500px; border:1px solid #ccc;}
div.tabs_content > div {padding:20px; display:none;} /* suggested to use display:none so that if the html is very long it wont jump badly */
Documentation
The jTabs allow you to use cookies, or custom fade in effects. It also has equal height script to make the pagination jump free.
jPaginate
Code Examples
html code needed
<div id="content">
<p>1Lorem ipsum dolor sit amet, consectetur adipiscing ept.</p>
<p>Vestibulum consectetur ipsum sit amet urna euismod imperdiet apquam urna laoreet.</p>
<p>Curabitur a ipsum ut ept porttitor egestas non vitae pbero.</p>
<p>Pellentesque ac sem ac sem tincidunt euismod.</p>
<p>2Duis hendrerit purus vitae nibh tincidunt bibendum.</p>
<p>Nullam in nisireet.</p>
<p>Nulla sed purus et tellus convalps scelerisque.</p>
<p>Nam at justo ut ante consectetur faucibus.</p>
<p>Proin dapibus nisi a quam interdum lobortis.</p>
<p>Nunc ornare nisi sed mi vehicula eu luctus mauris interdum.</p>
<p>Mauris auctor suscipit tellus, at sodales nisi blandit sed.Lorem ipsum dolor sit abitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. </p>
</div>
javascript code needed
$(document).ready(function(){
$("#content").jPaginate();
});
optional css you can use for a base
#content {width:500px;}
/* the following code is to style the generated pagination navigation system */
.pagination {list-style:none; margin:10px 0px 0px 0px; padding:0px; clear:both;}
.pagination li {float:left; margin:3px;}
.pagination li a{ display:block; padding:3px 5px; color:#fff; background-color:#44b0dd; text-decoration:none;}
.pagination li a.active {border:1px solid #000; color:#000; background-color:#fff;}
.pagination li a.inactive {background-color:#eee; color:#777; border:1px solid #ccc;}
Documentation
jPagination is filled with great little options to make the experience full of enhancements. For example you can set equal height to true to disable any jumping from the difference in height of pages. You can also enable cookies and have the users selected page be pre-selected when they refresh or come back to the page.
jSpotlight
Code Examples
html code needed
<ul class="parent">
<li><img src="one.jpg" width="300" height="250" title="Such a pretty photo!" /></li>
<li><img src="two.jpg" width="300" height="250" title="Even prettier!" /></li>
<li><img src="three.jpg" width="300" height="250" title="Simpler and more information cna be handled here" /></li>
<li><img src="four.jpg" width="300" height="250" title="short" /></li>
</ul><!-- parent -->
javascript code needed
$(document).ready(function(){
$(".parent").jSpotlight({title_effect: "slide"});
});
optional css you can use for a base
.parent {list-style:none; margin:0px; padding:0px;}
.parent li {float:left; margin:10px; border:5px solid #eee; width:300px; height:250px; position:relative;}
.parent li.active {border:5px solid #000;}
.parent li.inactive {border:5px solid #ccc; -moz-opacity:.50; filter:alpha(opacity=50); opacity:.50;}
.parent li .title {position:absolute; bottom:0px; left:0px; right:0px; padding:5px; background-color:#000; color:#fff; text-align:center;}
Documentation
jSpotlight is the real jewel of vanity in the whole set of plugins. It allows you to create beautiful spotlight effect in a series of images or just elements.
jTip
Code Examples
html code needed
<a href="#" class="tip" title="jTip And something longer will go here">Simple Tip</a>
<a href="#" class="tip" title="Something else in here!">Simple Tip 2</a>
<a href="#" class="tip" title="This is the greatest tip plugin EVER! Seriously :)">Longer text</a>
javascript code needed
$(document).ready(function(){
$(".tip").jTip();
});
optional css you can use for a base
.tip_window {
padding:5px;
width:200px;
border:1px solid #fff;
background-color:#000;
color:#fff;
text-align:center;
-moz-border-radius-topleft: 0px;
-moz-border-radius-topright: 4px;
-moz-border-radius-bottomright: 4px;
-moz-border-radius-bottomleft: 4px;
border-top-left-radius: 0px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
-webkit-box-shadow: 1px 1px 3px #6e6d6e;
-moz-box-shadow: 1px 1px 3px #6e6d6e;
box-shadow: 1px 1px 3px #6e6d6e;
}
Documentation
jTip is a super simple tip plugin, it's so simple we only have 4 options to use. Which attribute, that class for the tip, and the coordinates away from the element. That easy!
jPlaceholder
Code Examples
html code needed
<form method="get" action="#">
<input type="text" placeholder="something simple..." name="simple" class="placeholder" />
<input type="submit" />
</form>
javascript code needed
$(document).ready(function(){
$("input:text").jPlaceholder({css_class: "placeholder"});
});
optional css you can use for a base
.placeholder {color:#888; font-style:italic;}
Documentation
jPlaceholder brings the functionality of the html5 placeholder in all browsers!
jCollapse
Code Examples
html code needed
<a href="#" class="collapse" rel="#collapsibleElement">Expand</a>
<div id="collapsibleElement">
Test Content Number 1
</div>
javascript code needed
$(document).ready(function(){
$(".collapse").jCollapse({effect: "fade"});
});
Documentation
The collapse is very easy to use with only a few options to modify.
