show関数

<!DOCTYPE html>
<html lang="ja-JP">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.5">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>
$(function(){
	$("input").click(function(){
		$("#first").show();
		
		//下の記述でも可
		//$("p").css("display","block");
		
		$("#second").show("slow");
		
		$("#third").show(3000);
	});
});
</script>
<style>
p{
	width:200px;
	height:200px;
	display:none;
}
#first{
	background-color:#FF0000;
}
#second{
	background-color:#0000FF;
}
#third{
	background-color:#00FF00;
}
</style>
</head>
<body>
<input type="button" value="表示">
<p id="first"></p>
<p id="second"></p>
<p id="third"></p>
</body>
</html>a

inserted by FC2 system