33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>JQuery Cycle Plugin - Example Slideshow</title>
|
|
<style type="text/css">
|
|
.slideshow { height: 232px; width: 232px; margin: auto }
|
|
.slideshow img { padding: 15px; border: 1px solid #ccc; background-color: #eee; }
|
|
</style>
|
|
<!-- include jQuery library -->
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
|
|
|
|
<!-- include Cycle plugin -->
|
|
<script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.74.js"></script>
|
|
|
|
<!-- initialize the slideshow when the DOM is ready -->
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('.slideshow').cycle({
|
|
fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="slideshow">
|
|
<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" width="200" height="200" />
|
|
<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" width="200" height="200" />
|
|
<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" width="200" height="200" />
|
|
<img src="http://cloud.github.com/downloads/malsup/cycle/beach4.jpg" width="200" height="200" />
|
|
<img src="http://cloud.github.com/downloads/malsup/cycle/beach5.jpg" width="200" height="200" />
|
|
</div>
|
|
</body>
|
|
</html>
|