Salut à tous,

J'essaye tout simplement d'afficher un div ..seconde après un click.
Je cherche mais je n'arrive pas malgrés l'utilisation de .delay()
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
	<head>
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
	<script language="javascript" type="text/javascript">
		function affiche(){
 		 	$(this).delay(3000,
 		 		function(){
     			$("#ato").css("display","block");
  				}
  			);
		}
	</script>
	<style type="text/css">
		#ato{display:none;}
	</style>  
	</head>
<body>
	<button onclick="affiche()">Copy Text</button>
	<div id="ato">test</div>
</body>
</html>
Si quelque peux m'aider je l'en remercie.