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

Advanced options when showing Flash content using hs.contentType = "swf".
Since version 4.0, while the basic options for a flash popup are taken care of by hs.objectType, hs.objectWidth and hs.objectHeight, the swfOptions object lets you define all options supported by swfobject. These options are, as defined on the swfobject website:
version (string)
Specifies the Flash player version your SWF is published for (format is: "major.minor.release"). In Highslide this defaults to "7" if nothing else is defined.
expressInstallSwfurl (string)
Specifies the URL of your express install SWF and activates Adobe express install. Please note that express install will only fire once (the first time that it is invoked), that it is only supported by Flash Player 6.0.65 or higher on Win or Mac platforms, and that it requires a minimal SWF size of 310x137px.
flashvars (object)
Specifies your flashvars with name:value pairs.
params (object)
Specifies your nested object element params with name:value pairs. In Highslide the wmode param defaults to "transparent" if nothing else is defined.
attributes (object)
Specifies your object's attributes with name:value pairs

Details

Requires flash
Type object
Default value
Overrideable inline Yes

Example

1) General setting to all Flash expanders

Put this in the head section of your page. This affects all expanders on your page. In this case we set a required version number higher than 7, plus we add a flashvar.

1a) In the first code block we include the empty variables just to show how they are defined:

<script type="text/javascript">
	hs.swfOptions = {
		version:              "8",
		expressInstallSwfurl: null,
		flashvars:            { foo: "bar" },
		params:               {},
		attributes:           {}
	};
</script>

1b) or, the same statement without emty variables:

<script type="text/javascript">
	hs.swfOptions = {
		version:              "8",
		flashvars:            { foo: "bar" }
	};
</script>

1c) or, the same statement written line by line:

<script type="text/javascript">
	hs.swfOptions.version = "8";
	hs.swfOptions.flashvars.foo = "bar";
</script>

2) Specifically setting it to a single expander

<a class="highslide" href="flash.swf" onclick="return hs.htmlExpand(this, 
		{ objectType: 'swf', swfOptions: {version: '8', flashvars: 
		{ foo: 'bar' }, params: {quality: 'high'} } } )">
	Display flash
</a>

See also

New, Edit