跳转到主要内容
baseball 提交于 19 November 2013

您好:請問 lightbox2 的group name要如何設定

我參考

Grouping images

If you have a set of related images that you would like to group, then you will need to include a group name between square brackets in the rel attribute. For example:

<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip][caption 2]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip][caption 3]">image #3</a>
There are no limits to the number of image sets per page or how many images are allowed in each set.

 

請問,他是image #1 的 image 是groupname

還是[caption 2]的caption 是groupname

若我要用

If you want to display a "start slideshow" link at the top of the page for example (e.g. in a views header), you could try the following:
<a href="#" onclick="Lightbox.triggerLightbox('lightshow', 'groupname');">Start slideshow</a>

這group nameul要用哪一個?

謝謝!

 

 

Drupal 版本