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

The id of the HTML element containing the content for HTML popups.
When using hs.htmlExpand to display full HTML content in a popup, the contentId parameter specifies the id of the element. When the class name of the element is "highslide-html-content", the content will be invisible until it is picked up by Highslide and displayed in the popup. If hs.objectType is "iframe" or "ajax" and the content element contains a nested element with class name "highslide-body", external content will be written into that nested element. If contentId is omitted for Ajax, iframe and Flash content, a self rendering content wrapper will take it's place.

Details

Requires html
Type string
Default value null
Overrideable inline Yes

Example

<a href="fallback.htm" class="highslide"
onclick="return hs.htmlExpand(this,
    { contentId: 'my-content' } )">
Click here
</a>

<div class="highslide-html-content" id="my-content"
    style="width: 200px">    
    <a href="#" onclick="return hs.close(this)">
        Close
    </a>
    <div class="highslide-body">
        Remember to include a means of closing
        the expander.
    </div>
</div>

The effect

Click here
Close
Remember to include a means of closing the expander.

See also

New, Edit