1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script type="text/javascript" src="#CHEMIN{js/prototype.js}"></script>
<script type="text/javascript" src="#CHEMIN{js/effects.js}"></script>
<script type="text/javascript" src="#CHEMIN{js/jquery-1.4.4.min.js}"></script>
<script type="text/javascript" src="#CHEMIN{js/slides.min.jquery.js}"></script>
<script>
jQuery.noConflict();
jQuery(document).ready(function(){
// Set starting slide to 1
var startSlide = 1;
// Get slide number if it exists
if (window.location.hash) {
startSlide = window.location.hash.replace('#','');
}
// Initialize Slides
jQuery('#slides').slides({
preload: true,
preloadImage: 'img/loading.gif',
generatePagination: true,
play: 5000,
pause: 2500,
hoverPause: true,
// Get the starting slide
start: startSlide,
animationComplete: function(current){
// Set the slide number as a hash
window.location.hash = '#' + current;
}
});
});
</script> |
Partager