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