JavaScript Scripting Guide for QuickTime
Short Description
JavaScript can interact with QuickTime in various ways. You can use JavaScript in a browser to detect whether QuickTime is installed, you can use JavaScript to create the tags used to embed QuickTime content in aweb page, and you can use JavaScript to query and control the QuickTime plug-in directly. This document describes client-side scripting using JavaScript and QuickTime browser plug-ins.
Website: nenonk.googlepages.com | Filesize: 362kb
No of Page(s): 40
Content
…
JavaScript can be used to detect the QuickTime plug-in in most versions of most browsers onWindows and the Mac OS. The details vary slightly by browser, but a single script can be written that works with all supported browsers. Most browsers other than Internet Explorer forWindows (includingNetscape, Mozilla-based browsers, Safari, and Internet Explorer for Macintosh version 5) support the JavaScript navigator.plugins.name array. You can detect whether the user has the QuickTime plug-in installed by testing this array for “QuickTime.”
…
Internet Explorer forWindows does not support the navigator.plugins array, but does allow you to use VBScript to detect whether the QuickTime plug-in is installed (by testing for the presence of the QuickTime ActiveX control).
The following listing contains an example script that detects the user’s operating system, browser type, and browser version, uses JavaScript to test for the QuickTime plug-in, uses VBScript to test for the QuickTimeCOMobject, and detects users running older versions of Internet Explorer for Macintosh (making the assumption that these users also have QuickTime installed). This listing sets the variable haveqt either true or false.
…
Get the file Download here
Related Copyrighted Books
JavaScript: The Good Parts
jQuery in Action
Head First JavaScript
JavaScript: The Missing Manual
Ajax: The Definitive Guide
Related Searches: older versions of internet explorer, internet explorer for macintosh, quicktime internet, quicktime plug, javascript navigator
Comments
Leave a Reply