Created
June 30, 2010 08:54
-
-
Save jsor/458414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> | |
<head> | |
<title>jCarousel Examples</title> | |
<link href="../style.css" rel="stylesheet" type="text/css" /> | |
<!-- | |
jQuery library | |
--> | |
<script type="text/javascript" src="../lib/jquery-1.4.2.min.js"></script> | |
<!-- | |
jCarousel library | |
--> | |
<script type="text/javascript" src="../lib/jquery.jcarousel.min.js"></script> | |
<!-- | |
jCarousel skin stylesheet | |
--> | |
<link rel="stylesheet" type="text/css" href="../skins/tango/skin.css" /> | |
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery('#mycarousel').jcarousel({ | |
wrap: 'circular', | |
itemVisibleOutCallback: {onAfterAnimation: function(carousel, item, i, state, evt) { | |
if (i < 1 || i > carousel.size()) | |
carousel.remove(i); | |
}} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="wrap"> | |
<h1>jCarousel</h1> | |
<h2>Riding carousels with jQuery</h2> | |
<h3>Simple carousel</h3> | |
<p> | |
This is the most simple usage of the carousel with no configuration options. | |
</p> | |
<ul id="mycarousel" class="jcarousel-skin-tango"> | |
<li><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" width="75" height="75" alt="" /></li> | |
<li><img src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" width="75" height="75" alt="" /></li> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment