<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript"> $(function(){ $("img").one("click",function(){ $("span").html("<img src=\"" + $(this).attr("src") + "\">"); }); }); </script> <style> img{ cursor:pointer; } span{ position:fixed; top:20px; right:20px; background-color:#CCCCCC; width:200px; height:200px; line-height:200px; text-align:center; padding:10px; } </style> </head> <body> <img src="img/image1.png"> <img src="img/image2.png"> <img src="img/image3.png"> <img src="img/image4.png"> <img src="img/image5.png"> <span> 選択 </span> </body> </html>