私は次のようにライトボックスを使用しています:
$('#gallery a').lightBox();
htmlは次のようになります。
<div id="gallery">
<div class='holder'>
<div class='thumb'>
<a href='images/all-tomorrows-parties.jpg'>
<img src='images/thumbs/all-tomorrows-parties-t.jpg' width='140' height='120' /></a>
</div>
<div class='title'>
<h3>
<a href="http://www.amazon.com/">
All Tomorrow's Parties<br />
William Gibson
</a>
</h3>
</div>
</div>
したがって、javascriptは.gallery div内のすべてのリンク()に影響します。タイトルクラスではなく、thumbクラスにのみ影響を与えるようにします。どうやってやるの?
私はJavascriptでかなり新しいです:/