我想在同个页面放入几个相册,这样子就同时调用了同个jquery,然后出现了id重复使用的错误,请问可以怎么修改??如果我把全部相册都放进同个table中,然后再table中引用id,则每一个相册都能引用到jquery的效果,但是是浏览图片时出现了浏览到本相册的最后一张是它还继续浏览到下个相册的第一张。我想要就是浏览到一个相册最后一张的时候不能继续浏览下去的那种,请高手帮忙~谢谢。
代码:<table id="gallery">
<tr >
<td width="330" height="200" class="shadow">
<a href="UI_black/about.png" rel="lightbox">
<img src="UI_black/about.png" width="210" height="200px" />
</a>
<a href="UI_black/blog.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/home.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/the journey.png" rel="lightbox[roadtrip]"> </a>
</td>
<td width="330" height="200" class="shadow">
<a href="UI_black/about.png" rel="lightbox">
<img src="UI_black/about.png" width="210" height="200px" />
</a>
<a href="UI_black/blog.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/home.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/the journey.png" rel="lightbox[roadtrip]"> </a>
</td>
<td width="330" height="200" class="shadow">
<a href="UI_black/about.png" rel="lightbox">
<img src="UI_black/about.png" width="210" height="200px" />
</a>
<a href="UI_black/blog.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/home.png" rel="lightbox[roadtrip]"> </a>
<a href="UI_black/the journey.png" rel="lightbox[roadtrip]"> </a>
</td>
</tr>
</table>
还有引用的是jquery.lightbox-0.5.js。。谢谢~~~