Highslide JS API Reference

Close Move
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam dapibus leo quis nisl. In lectus. Vivamus consectetuer pede in nisl. Mauris cursus pretium mauris. Suspendisse condimentum mi ac tellus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec sed enim. Ut vel ipsum. Cras consequat velit et justo. Donec mollis, mi at tincidunt vehicula, nisl mi luctus risus, quis scelerisque arcu nibh ac nisi. Sed risus. Curabitur urna. Aliquam vitae nisl. Quisque imperdiet semper justo. Pellentesque nonummy pretium tellus.
Resize

Object: hs

Variables

Functions

Events

Object: hs.Expander

Variables

Functions

Events



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

New, Edit