Title: ImageLightbox.js
Author: Znuff
Published: <strong>2014 年 2 月 11 日</strong>
Last modified: 2019 年 7 月 1 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/wp-imagelightbox.svg)

# ImageLightbox.js

 由 [Znuff](https://profiles.wordpress.org/znuff/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-imagelightbox.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-imagelightbox/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-imagelightbox/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-imagelightbox/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-imagelightbox/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-imagelightbox/)

## 外掛說明

Responsive and touch-friendly lightbox for WordPress.

Has no options. It will run on posts/pages/attachments. It will **NOT** run on categories,
archives, front page etc.

Thanks to:

 * [Osvaldas Valutis](https://osvaldas.info/) for [ImageLightbox.js](https://osvaldas.info/image-lightbox-responsive-touch-friendly)
 * [Veeck](https://github.com/rejas) for his [ImageLightbox.js fork](https://github.com/rejas/imagelightbox)

## 安裝方式

 1. Upload wp-imagelightbox to `/wp-content/plugins`
 2. Activate plugin from admin interface

## 常見問題集

  Where are the options?

There aren’t any at the moment!

  How to change the imagelightbox type?

At the moment there is no way to change the type unless you edit the code of the
plugin. Inside wp-imagelightbox.php you can edit the option parameters to whatever
you desire. Please keep in mind they will be overwritten on update.

## 使用者評論

![](https://secure.gravatar.com/avatar/06b8dde83eaf8e8297ddc60223b2fc07e4e43cefadf5d2f18e3bcab1233d89e5?
s=60&d=retro&r=g)

### 󠀁[Love it](https://wordpress.org/support/topic/love-it-1315/)󠁿

 [SandraJay](https://profiles.wordpress.org/sandrajay/) 2016 年 9 月 3 日

As a realtor, my sites depend on images. Big images with few distractions surrounding
them. This gives me EXACTLY what I want. I'm new to WP so this is so easy to use.
Many thanks!

![](https://secure.gravatar.com/avatar/a67945e443e99ed54bed411c1201a8f8a69c054679fe890765cade5887d58ee4?
s=60&d=retro&r=g)

### 󠀁[nice work](https://wordpress.org/support/topic/nice-work-240/)󠁿

 [Robert G.](https://profiles.wordpress.org/robertutzu/) 2016 年 9 月 3 日

works good and damn it`s small

![](https://secure.gravatar.com/avatar/e18d8ed81f96743a933b72fa645333d895ad5783318d3bf12fbf93352e1dcc6e?
s=60&d=retro&r=g)

### 󠀁[Prostota i elegancja](https://wordpress.org/support/topic/prostota-i-elegancja/)󠁿

 [TheAdrianoo](https://profiles.wordpress.org/theadrianoo/) 2016 年 9 月 3 日

Brakuje chociażby kilku podstawowych opcji, jednakże działa najszybciej, najlepiej,
i zawsze dostosowuje się do sytuacji.

 [ 閱讀全部 5 則使用者評論 ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈ImageLightbox.js〉的開發相關工作。

參與者

 *   [ Znuff ](https://profiles.wordpress.org/znuff/)

[將〈ImageLightbox.js〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-imagelightbox)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-imagelightbox/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-imagelightbox/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/wp-imagelightbox/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-imagelightbox/)。

## 變更記錄

#### r13

 * One more bump

#### r12

 * Fixed a typo in the activation code

#### r11

 * Fixed an issue where swiping left/right and closing the image by touching outside
   the image didn’t work while logged in (`#wpadminbar` had a higher z-index)
 * Disabled “history” by default, so we don’t break users back buttons in certain
   cases, needs more investigation

#### r10

 * Added !important to our zoom button so it doesn’t get overriden by theme styles(
   hopefully)

#### r9

 * Added a very rudimentary “open in a new tab” button to let the browser handle
   large images (ie: screenshots)
 * Fixed the shape of navigation buttons on mobile (now they are round)
 * Also moved the navigation buttons on the bottom on mobile.

#### r8

 * Fixed an issue with the init script being present on archive pages
 * Remove the $type from the data-imagelightbox attribute, as we don’t use that 
   anymore

#### r7

 * Refactored the init script
 * Updated ImageLightbox.js, swapped to https://github.com/rejas/imagelightbox
 * Cleaned a lot of code

#### r6

 * Forgot to add the new .js name to the repo (can we have git, please, wordpress.
   org?)

#### r5

 * Fixed version number loading

#### r4

 * Added a “view original image” button which opens the current image in a new tab
 * Defaulting to mode=f which corresponds to Osvaldas’ “combination” mode
 * Stuff that I forgot?

#### r3

 * Fixed dependency on jQuery

#### r2

 * Tweaked the CSS a bit. Overlay is now dark, nav is “tigther”. Looks better on
   mobiles phones, too (imho).

#### r1

 * Initial release

## 中繼資料

 *  版本 **r13**
 *  最後更新 **7 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.3.25**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-imagelightbox/)
 * 標籤:
 * [lightbox](https://tw.wordpress.org/plugins/tags/lightbox/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-imagelightbox/advanced/)

## 評分

 4.6 星，滿分為 5 星

 *  [  4 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-imagelightbox/reviews/)

## 參與者

 *   [ Znuff ](https://profiles.wordpress.org/znuff/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-imagelightbox/)