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

推荐订阅源

月光博客
月光博客
MyScale Blog
MyScale Blog
博客园 - Franky
The Cloudflare Blog
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
The Blog of Author Tim Ferriss
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
J
Java Code Geeks
腾讯CDC
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
G
Google Developers Blog
博客园 - 【当耐特】
美团技术团队
云风的 BLOG
云风的 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);