hs.allowSimultaneousLoading
Allow multiple popups to be opened at the same time
By default one popup at load time cancels other popups that are loading. This is to prevent the user from clicking many thumbnails while waiting for one, and all of them opening at the same time. However, in some cases like when using a script to open multiple popups, you may want to set allowSimultaneousLoading
to true.
Details
Type |
boolean |
Default value |
false |
Overrideable inline |
No |
Example
Opening two popups by script
This code shows how to open two popups when clicking a link.
hs.allowSimultaneousLoading = true;
function openTwo() {
hs.expand(null, {
src: '../samples/full1.jpg',
targetX: 'my-target',
targetY: 'my-target -100px'
});
hs.expand(null, {
src: '../samples/full3.jpg'
});
}
See also