Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.overridesDefines which settings of the hs object that will be inherited by the single hs.Expander.
The concept of overrides is important in Highslide. Since hs.Expander does not extend the hs object directly, only those properties listed in the hs.overrides array are copied over to the hs.Expander object. The implication is that these properties can be set both at page-level and for each single expander. A collection of overriding options is defined in the second parameter of the hs.expand and hs.htmlExpand functions as seen below. This is the overrides array when all options are checked in the Configurator: hs.overrides = [ 'allowSizeReduction', 'anchor', 'align', 'targetX', 'targetY', 'outlineType', 'outlineWhileAnimating', 'captionId', 'captionText', 'captionEval', 'captionOverlay', 'headingId', 'headingText', 'headingEval', 'headingOverlay', 'dragByHeading', 'autoplay', 'numberPosition', 'transitions', 'dimmingOpacity', 'contentId', 'width', 'height', 'allowWidthReduction', 'allowHeightReduction', 'preserveContent', 'maincontentId', 'maincontentText', 'maincontentEval', 'objectType', 'cacheAjax', 'objectWidth', 'objectHeight', 'objectLoadTime', 'swfOptions', 'wrapperClassName', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'slideshowGroup', 'easing', 'easingClose', 'fadeInOut', 'src' ]; Details
ExampleGeneral setting to all expandersPut this in the head section of your page. This affects all expanders on your page. <script type="text/javascript"> hs.anchor = 'bottom left'; </script> Specifically setting it to a single expanderDefine the property in an object (notated by brackets) in the second argument of hs.expand or hs.htmlExpand <a class="highslide" href="full1.jpg" onclick="return hs.expand(this, { anchor: 'top right' })"> <img src="../samples/thumb1.jpg" alt=""/> </a> The effect:
See also |