解答例

<!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(){
	$("ul li:nth-last-child(1)").click(function(){
		$("span").html($("li:nth-last-child(1)").html()).css("display","block");
	});
	$("ul li:nth-last-child(2)").click(function(){
		$("span").html($("li:nth-last-child(2)").html()).css("display","block");
	});
	$("ul li:nth-last-child(3)").click(function(){
		$("span").html($("li:nth-last-child(3)").html()).css("display","block");
	});
	$("ul li:nth-last-child(4)").click(function(){
		$("span").html($("li:nth-last-child(4)").html()).css("display","block");
	});
	$("ul li:nth-last-child(5)").click(function(){
		$("span").html($("li:nth-last-child(5)").html()).css("display","block");
	});
	$("span").click(function(){
		$(this).css("display","none");
	});
});
</script>
<style>
ul li{
	display:block;
	float:right;
	cursor:pointer;
}
span{
	position:fixed;
	top:50%;
	left:50%;
	width:200px;
	height:200px;
	display:none;
	margin-left:-125px;
	margin-top:-125px;
	padding:25px;
	background-color:#000000;
}
</style>
</head>
<body>
	<ul>
		<li><img src="img/image5.png"></li>
		<li><img src="img/image4.png"></li>
		<li><img src="img/image3.png"></li>
		<li><img src="img/image2.png"></li>
		<li><img src="img/image1.png"></li>
	</ul>
	<span></span>
</body>
</html>

inserted by FC2 system