Once you have these downloaded, put the script file "AC_QuickTime.js"
in the main directory (aka document root) of your web server. Then you
can use functions from the library by using the including tag in your
html:
The example on my site that opens QuickTime Player from an HREF link
uses the JavaScript library above. It does so by creating a new window,
and using JavaScript document.write commands (a method that has been
discussed on this list). The JavaScript function I wrote for this
purpose could be copied into the <HEAD> section of the web page you
want to use it on. This function also uses a small QuickTime movie
named "launchingqt.mov" that displays the graphic "Launcing QuickTime
Player." This movie could also be placed in the main directory of your
web server. To call this function in your web page, you would use an
HREF tag such as:
<a href="#"
onClick="launchPlayer('./qt4-web/qt_webmasters/mov/jump.mov')">Open the
movie in QuickTimePlayer</a><p>
For this to work, the "head" section of your web page needs the
"launchPlayer" function (copy and paste from below). You also need to
have the 160x120 launchingqt.mov file (or your equivalent) in the
document root of your web server. If you want my movie, you can get it
from http://homepage.mac.com/cook5/launchingqt.mov
<head>
<title>Your Web Page Title</title>
<SCRIPT LANGUAGE="javascript">
function launchPlayer(url) {
// variables for the QT Window
var jsString1 = "QT_WriteOBJECT ('/launchingqt.mov','160','120','',";
var jsString2 = "'href','" + url + "',";
var jsString3 =
"'controller','false','autohref','true','target','quicktimeplayer'";
// make a new window, title and resize it
movieWin=window.open("","QuickTime","scrollbars=no,toolbar=no");
movieWin.document.write('<body bgcolor="#000000">');
movieWin.resizeTo(200,180);
// write the QT Javascript Library to thw window
movieWin.document.writeln('<' + 'script src="/AC_QuickTime.js"
language="JavaScript" type="text/javascript">');
movieWin.document.writeln("</" + "script>");
From: email@hidden
Subject: Re: web page
Date: Sat, 15 Nov 2003 01:02:29 -0500
To: email@hidden
I'm having a little trouble understanding what you mean that I need to
do with the 'JavaScript Libraries'.
(http://developer.apple.com/internet/ieembedfix.html)
1) when I go to the site listed, and click on 'JavaScript', there's is
tons of stuff and I'm lost with what am supposed to be looking for;
2) and what do I do with it once I have it? d'oh! sorry. :-(
"All" I really need to get this understood is one example. Your page,
very of kind you, is difficult for this beginner to cut out the other
linkage. again... :-(.
Would you (anyone?) help me out? and I'll about be done with what I
need. :-)
Ted
_______________________________________________
quicktime-talk mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-talk
Do not post admin requests to the list. They will be ignored.