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
|
$(document).ready( function () {
//Déroule accueil.control.php
var etat = null;
$('.plus_info_recherche').click( function () {
if (etat != null) {
var form = $(this).attr('rel');
$('form#'+form).animate({
height: '107px'
}, 200);
$(this).css('background', 'url("template/img/btn_plus.png")');
etat = null;
}
else {
var form = $(this).attr('rel');
$('form#'+form).animate({
height: '200px'
}, 200);
$(this).css('background', 'url("template/img/btn_moins.png")');
etat = form;
}
});
}); |
Partager