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

A text to use in the caption.
While hs.captionEval = 'this.thumb.alt' or a fully marked up successive caption generally is a better alternative, there might be cases where you don't want to use these options. hs.captionText simply inserts the given text into the caption.

Details

Requires overlays
Type string
Default value null
Overrideable inline No

Example

Set the captionText for a single expander

<a class="highslide" href="../samples/full3.jpg" 
      onclick="return hs.expand(this, { captionText: 'This is the caption text' } )">
   <img src="../samples/thumb3.jpg" alt=""/>
</a>

The effect:

See also

New, Edit