I've written some code that creates a pop-up window to play back
QuickTime movies and then pushes HTML into that window so I don't have
to have a separate HTML file for every movie. The code works fine...
except for one thing, the silly window Title remains "Untitled". Also,
in FireFox, it acts as if the window never completely loads, the
progress bar stays at the bottom of the small window. Here's the
code... as you can see I set the title using the <TITLE> tag and then
again a last ditch effort using some JS.
Help!!!! :-)
function
openVideoWindow (theTitle,theFi le,windWidth,wi ndHeight,movWid th,movHeight)
{
videoWindow = window.open('ab out:blank', 'new',
'width='+windWi dth+',height='+ windHeight+',st atus=no,toolbar =no,menubar=no, scrollbars=yes, resizable=yes')
videoWindow.doc ument.write('<H TML>')
videoWindow.doc ument.write('<H EAD>')
videoWindow.doc ument.write('<T ITLE>'+theTitle +'</TITLE>')
videoWindow.doc ument.write('</HEAD>')
videoWindow.doc ument.write('<B ODY BGCOLOR="#12345 6"><CENTER>' )
videoWindow.doc ument.write('<S CRIPT>top.docum ent.title =
"'+theTitle +'"</SCRIPT>')
videoWindow.doc ument.write('<T ABLE BORDER="0" CELLPADDING="8" ><TR><TD
ALIGN="CENTER"> ')
videoWindow.doc ument.write('<O BJECT
CLASSID="clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="'+movWid th+'" HEIGHT="'+movHe ight+'"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">< PARAM
NAME="src" VALUE="'+theFil e+'.mov"><PARAM NAME="autoplay"
VALUE="true"><P ARAM NAME="controlle r" VALUE="true"><E MBED
SRC="'+theFile+ '.mov" WIDTH="'+movWid th+'" HEIGHT="'+movHe ight+'"
AUTOPLAY="true" CONTROLLER="tru e"
PLUGINSPAGE="ht tp://www.apple.com/quicktime/download/"></EMBED></OBJECT>')
videoWindow.doc ument.write('</TD></TR></TABLE></CENTER></BODY></HTML>')
}
QuickTime movies and then pushes HTML into that window so I don't have
to have a separate HTML file for every movie. The code works fine...
except for one thing, the silly window Title remains "Untitled". Also,
in FireFox, it acts as if the window never completely loads, the
progress bar stays at the bottom of the small window. Here's the
code... as you can see I set the title using the <TITLE> tag and then
again a last ditch effort using some JS.
Help!!!! :-)
function
openVideoWindow (theTitle,theFi le,windWidth,wi ndHeight,movWid th,movHeight)
{
videoWindow = window.open('ab out:blank', 'new',
'width='+windWi dth+',height='+ windHeight+',st atus=no,toolbar =no,menubar=no, scrollbars=yes, resizable=yes')
videoWindow.doc ument.write('<H TML>')
videoWindow.doc ument.write('<H EAD>')
videoWindow.doc ument.write('<T ITLE>'+theTitle +'</TITLE>')
videoWindow.doc ument.write('</HEAD>')
videoWindow.doc ument.write('<B ODY BGCOLOR="#12345 6"><CENTER>' )
videoWindow.doc ument.write('<S CRIPT>top.docum ent.title =
"'+theTitle +'"</SCRIPT>')
videoWindow.doc ument.write('<T ABLE BORDER="0" CELLPADDING="8" ><TR><TD
ALIGN="CENTER"> ')
videoWindow.doc ument.write('<O BJECT
CLASSID="clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="'+movWid th+'" HEIGHT="'+movHe ight+'"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">< PARAM
NAME="src" VALUE="'+theFil e+'.mov"><PARAM NAME="autoplay"
VALUE="true"><P ARAM NAME="controlle r" VALUE="true"><E MBED
SRC="'+theFile+ '.mov" WIDTH="'+movWid th+'" HEIGHT="'+movHe ight+'"
AUTOPLAY="true" CONTROLLER="tru e"
PLUGINSPAGE="ht tp://www.apple.com/quicktime/download/"></EMBED></OBJECT>')
videoWindow.doc ument.write('</TD></TR></TABLE></CENTER></BODY></HTML>')
}
Comment