简体   繁体   English

如何在页面加载时触发全屏Galleria插件

[英]How can I trigger the fullscreen galleria plugin on page load

I'd like to get the fullscreen galleria plugin for wordpress to trigger on page load. 我想获得全屏图库插件,以供wordpress在页面加载时触发。 Is this possible. 这可能吗。 There is only one collection of imaged on the page, and I want the plugin to start the fullscreen gallery as soon as the page finished lading. 页面上只有一个图像集合,我希望插件在页面完成装载后立即启动全屏画廊。

Plugin homepage: http://wordpress.org/plugins/fullscreen-galleria/ 插件主页: http : //wordpress.org/plugins/fullscreen-galleria/

If you know how to trigger it then you can do it inside window.onload 如果您知道如何触发它,则可以在window.onload

window.onload = function(){
   // the page has finished loading. So trigger it here.
}

You could try triggering button to launch gallery, something like 您可以尝试触发按钮以启动图库,例如

$(document ).ready(function() {
    $('#button').click();
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM