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
| <script>
/*
* Trois erreurs à l'ouverture du site :
*
* GUnload is not defined
* initialize is not defined
*
* Erreur CSS sur float
*/
function afficher(page){
$('div.contenu').fadeOut(500, function(){
$(this).load(page, function(){
$(this).fadeIn(1000);
});
});
// attention, il y a un h1.titre
$('div.titre').fadeOut(500, function(){
$(this).load(page, function(){
$(this).fadeIn(1000);
});
});
}
$(function(){
$("#menu a").click(function(){
afficher($(this).attr("href"));
return false;
});
});
</script> |
Partager