<!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"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><title>Demo</title><style>
#dark_layer { position: fixed; width: 100%; height: 100%; margin: 0px; padding: 0px;
background-color: rgba(0,0,0,0.8); z-index: 100; display: none;}.big > img { display: block; margin: 100px auto; padding: 20px; border: 1px solid #aaa; border-radius: 5px; background-color: rgba(128,128,128,0.5);}
</style><script src="http://code.jquery.com/jquery-1.10.2.js"></script><script language="javascript">function lightmebox(obj){ dark_layer(); var big = "<div class='big'><img src='"+$(obj).attr("src")+"' /></div>"; $("#dark_layer").html(big); } function dark_layer(){ $("#dark_layer").fadeIn(1000); } </script>
</head>
<body><div id="dark_layer" onclick="$(this).fadeOut(1000)"></div><img onclick='lightmebox($(this))' src='http://www.moisrex.rozblog.com/user/Avatar/moisrex/amiralah.jpg' /></body>
</html>