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

推荐订阅源

B
Blog RSS Feed
J
Java Code Geeks
H
Help Net Security
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
U
Unit 42
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 叶小钗
D
Docker
量子位
P
Proofpoint News Feed
博客园_首页
T
Tailwind CSS Blog
F
Fortinet All Blogs

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);