embed :Linguist (JavaScript)

This is example HTML code for embedding spinControl:Linguist in your Web page, using a JavaScript embed method.

Use of a JavaScript embed method is recommended, so that your Windows IE users aren’t prompted to activate controls/movies while viewing your QTVR.

This example also uses Apple, Inc.‘s freely available JavaScript, which is included in the download. Download the full example and JavaScript here.

Using this supplied method is also easier for you, since we’ve put all the parameters in one place at the top of the page — no more hunting and pecking inside confusing HTML code!

This has been formatted for readability.

<!— Apple-supplied JAVASCRIPT —> <script type=‘text/javascript’ src=‘javascript/AC_QuickTime.js’></script>
<!— End Apple-supplied JAVASCRIPT —>

<!— SPINCONTROL, QTVR, AUDIO PARAMETERS —>
<!— Change the items between double quote marks (below) to fit your needs —>
<script language=‘JavaScript’ type=‘text/javascript’>
js_mainBackground = “e8e8e8”;
js_outlineNormal = “37322E”;
js_outlineOver = “FF6600”;
js_outlineDown = “FF9900”;
js_buttonNormal = “BFC2D2”;
js_buttonOver = “BFC2D2”;
js_buttonDown = “37322E”;
js_arrowNormal = “FF6600”;
js_arrowOver = “FF6600”;
js_arrowDown = “000000”;
js_textColor = “99cc00”;
js_spinDirection = “-.2”;
js_MaximumTilt = “-20”;
js_enableAutospinToggle = “yes”;
js_AutospinOnAtStart = “1”;
js_enableHotspotToggle = “yes”;
js_HotspotsOnAtStart = “1”;
js_hasSound = “yes”;
js_SoundOnAtStart = “0”;
js_disabledTransparency = “0”;
js_LanguageFlag = “1”;
js_FadeText1 = “I am some text… blah blah blah”;
js_FadeText2 = “This controller now speaks 9 languages!”;
// CHANGE THE BELOW THREE LINES TO MATCH YOUR OWN QTVR/AUDIO/SPINCONTROL FILES
URL_to_Audio_File = “http://MyCoolWebsite.com/MyCoolAudio.mov”;
URL_to_QTVR_File = “http://www.MyCoolWebSite.net/vr/MyCoolQTVR.mov”;
URL_to_spinControl_File = “http://MyCoolWebSite.com/spinControl_Linguist.mov”;
</script>
<!— END PARAMETERS —>