Bonjour
je cherche a simplifier je code suivant

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
if ( ok != "ok" ){
$('#masque').css({ display:'block' });
$('#masque').animate({opacity:0.8},0);					
};
 
$('.vignetteimage').click(function()	
{	
$('#masque').css({ display:'block' });
$('#masque').animate({opacity:0.8},0);					
});
Pour avoir quelque choix comme ça

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
if (( ok != "ok" ) or ( $('.vignetteimage').click ) ){
$('#masque').css({ display:'block' });
$('#masque').animate({opacity:0.8},0);					
};

Merci pour votre aide