简体   繁体   中英

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. 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/

If you know how to trigger it then you can do it inside 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();
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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