Next, type document.write('html');, where html is the code for your movie (e.g., the object elements as described on pages 286291) with absolutely no carriage returns (Figure 18.16).
Finally, type } to complete the script.
Save the file in text-only format with the .js extension.
Figure 18.17. If you like, you can create multiple document.write lines for each (X)HTML element. Be careful with your punctuation (see tip 3).
According to Microsoft, multimedia in ActiveX controls that requires no interaction should continue to function. That is, QuickTime movies should be able to load in the background and autoplay with no clicking required. Unfortunately, that does not happen in Internet Explorer for Windows (I'm getting tired of typing "surprise!") even though it does work like that for Windows Media Player files. Seems like a conspiracy to me.
Figure 18.18. In the Web page, you have to load the script in the head section and then call the function where you want the movie to appear.
For inserting multiple movies, see http://developer.apple.com/internet/ieembedprep.html. Or even better, Geoff Stearns' SWFObject: http://blog.deconcept.com/swfobject/