any way to call easybox automatic on load a page??

41 views
Skip to first unread message

Oskar Araya

unread,
Jun 24, 2013, 12:12:05 PM6/24/13
to easybox...@googlegroups.com
there is any way to call easybox automatic on load a page, like a pop up?

Vincent Wochnik

unread,
Jun 24, 2013, 1:03:30 PM6/24/13
to easybox...@googlegroups.com
Yes. You can do that with jQuery document.ready function:

(function($) {
$(function() {
$.easybox([{url: '#hello1'}, {url: '#hello2'}, {url: '#hello3'}], 0, {hideBottom: true, noNavigation: true, noClose: true, slideshow: 1000, autoClose: 1000});
$("a.slideshow").click(function() {
return $.easybox([{url: '#container1'}, {url: '#container2'}, {url: '#container3'}, {url: '#container4'}], 0, {});
});
});
})(jQuery);

This code snippet is from the demo.

Oskar Araya

unread,
Jun 24, 2013, 3:33:11 PM6/24/13
to easybox...@googlegroups.com
Perfect,  works fine!!! :) 
Any way to set the youtube size in this code???
Message has been deleted

Vincent

unread,
Jun 24, 2013, 4:28:42 PM6/24/13
to easybox...@googlegroups.com
Look into the documentation. There are various options. You can set a maximum frame size and a youtube player height.
Reply all
Reply to author
Forward
0 new messages