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 34 35 36 37 38 39 40 41 42 43
| <script>
$('#home').click(function() {
$('#bloc_page').twbsPagination({
totalPages: parseInt('<?php echo $nombre_pages; ?>'),
visiblePages: parseInt('<?php echo $nombre_pages; ?>'),
next: 'Next',
prev: 'Prev',
onPageClick: function(event, page) {
var param = 'l=' + page + 'home';
//fetch content and render here
$('#contenu_site').load('affichegallery.php', param);
}
});
$(this).css('font-weight', 'bold');
$(this).css('cursor', 'default');
$(this).attr("disabled", true);
$('#vietnam').attr("disabled", false);
$('#vietnam').css('cursor', 'pointer');
$('#vietnam').css('font-weight', 'normal');
});
$('#vietnam').click(function() {
$('#bloc_page').twbsPagination({
totalPages: parseInt('<?php echo $nombre_pages; ?>'),
visiblePages: parseInt('<?php echo $nombre_pages; ?>'),
next: 'Next',
prev: 'Prev',
onPageClick: function(event, page) {
var param = 'l=' + page + 'vietnam';
//fetch content and render here
$('#contenu_site').load('affichegallery.php', param);
}
});
$(this).css('font-weight', 'bold');
$(this).css('cursor', 'default');
$(this).attr("disabled", true);
$('#home').attr("disabled", false);
$('#home').css('cursor', 'pointer');
$('#home').css('font-weight', 'normal');
});
</script> |
Partager