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

Close an expander given by a containing element.
bool hs.close( [mixed param] )
The function always returns false. The hs.close function is normally used within a custom overlay, a caption or HTML content to close the surrounding expander. In that case hs.close(this) should be used. When using hs.close in the onclick attribute of an anchor, the return false statement prevents the anchor from doing it's default action.

Details

Type function
Returns boolean

Parameters

The hs.close function takes the same parameter as hs.getExpander, see there for details.

Example

Putting a close link in the caption

<a class="highslide" href="full1.jpg" onclick="return hs.expand(this)">
   <img src="thumb1.jpg" alt=""/>
</a>
<div class="highslide-caption">
   <a href="#" onclick="return hs.close(this)">Close me</a>
</div>

Try it

See also

New, Edit