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