我有一个关于灯箱的问题,请参阅我的 jsFiddle。单击其中一个图像会打开更大版本的绘画作为页面叠加。
如何使用ESC按键关闭此页面叠加层?
以及如何使用箭头键移动到下一个图像?
我需要什么样的 jQuery 插件 / javascript 才能做到这一点?
<ul class="lb-album">
<li>
<a href="#Fly-My-Pretties-Walled-Garden">
<img src="http://sandipa.com.au/images/works-for-sale/thumbs/Fly-my-Pretties-Walled-Garden-sm.jpg" alt="Fly My Pretties: Walled Garden">
<span>Fly My Pretties</span> </a>
<div class="lb-overlay" id="Fly-My-Pretties-Walled-Garden">
<a href="#page" class="lb-close">x Close</a>
<img src="http://sandipa.com.au/images/2010-2011/1000px-wide/Fly-my-Pretties-Walled-Garden.jpg" alt="Fly My Pretties: Walled Garden">
<div>
<h3>Fly My Pretties: Walled Garden<span>mixed media on canvas</span></h3>
<p>72 x 137 cm</p>
<a href="#Light-that-Shapes-the-Shadows" class="lb-prev">Prev</a>
<a href="#Central-Highlands-Circle-of-Gold" class="lb-next">Next</a>
</div>
</div>
</li>
<li>
<a href="#Central-Highlands-Circle-of-Gold">
<img src="http://sandipa.com.au/images/works-for-sale/thumbs/Central-Highlands-Circle-of-Gold-sm.jpg" alt="Central Highlands: Circle of Gold">
<span>Circle of Gold</span> </a> …Run Code Online (Sandbox Code Playgroud)