惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
罗磊的独立博客
月光博客
月光博客
J
Java Code Geeks
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

WordPress Plugin

How to Create an Audio Player Playlist from an XML File Copy Audio URL in Wonder Audio Player YouTube Error 153 | WordPress Plugin How to Create a WordPress Gallery from an XML File How to Remove URL Query Parameters in Wonder Lightbox How to Dynamically Create a WordPress Image and Video Gallery Using WordPress Media Library IDs How to Add an Image to the Lightbox Gallery Without Showing It in the Grid Gallery How to Make the PDF Page Fit the Entire Lightbox Width When Opening a PDF File Double Tap to Play or Pause the WordPress Audio Player on Touch Devices
Wonder Lightbox JavaScript Events | WordPress Plugin
2025-07-30 · via WordPress Plugin

Plugin:

Wonder Lightbox

Tutorial:

This tutorial lists the JavaScript events supported by the Wonder Lightbox plugin.

When the lightbox is opened:

(function($){
  $(window).on("html5lightbox.event", function( event, type, url, title) {
    console.log("Lightbox URL: " + url);
    console.log("Lightbox Title: " + title);
  });
})(jQuery);

When the lightbox is closed:

(function($){
  $(window).on("html5lightbox.lightboxclosed", function(){
    console.log("Lightbox Closed");
  });
})(jQuery);

When the lightbox opens a video and the video finishes playing:

(function($){
  $(window).on("html5lightbox.videofinished", function(){
    console.log("Video Finishes");
  });
})(jQuery);