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

Where to inject a text showing the number of the current image in a sequence.

Set null to disable the number.

The number of the image can be expressed in a string like "Image 1 of 5" or "1/5". The exact string is determined by the hs.lang object.

hs.numberPosition can be one of "heading", "caption" or it can be undefined. When it is one of the former, the string is injected at the top of the heading or caption HTML.

Details

Requires overlays, slideshow
Type string
Default value null
Overrideable inline Yes

Example

Changing the way the number displays

<script type="text/javascript">
	// First, we need to turn on the number display
	hs.numberPosition = "heading";
	// Then, override the language object to suit your needs
	hs.lang.number = "Image %1 of %2";
</script>

The effect:

See also

New, Edit