Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.getExpanderGet a hs.Expander object by id, by a DOM element or get the active expander.
hs.Expander hs.getExpander ( [mixed param] )
The getExpander function is designed to return the correct element almost whatever you throw at it, as shown below.
Details
Parameters
ExampleGetting hs.Expander info from the captionIn this case this refers to the h1 element itself, and getExpander returns the hs.Expander the caption is a part of. It alerts the href attribute of the anchor that opened the hs.Expander. <div class="highslide-caption"> <h1 onclick="alert(hs.getExpander(this).a.href)">Click me</h1> </div> Try it |