Object: hsVariables
Functions
EventsObject: hs.ExpanderVariablesFunctionsEvents
|
hs.swfOptionsAdvanced 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:
Details
Example1) General setting to all Flash expandersPut 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 |