R
rolandgust
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,theFile,windWidth,windHeight,movWidth,movHeight)
{
videoWindow = window.open('about:blank', 'new',
'width='+windWidth+',height='+windHeight+',status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes')
videoWindow.document.write('<HTML>')
videoWindow.document.write('<HEAD>')
videoWindow.document.write('<TITLE>'+theTitle+'</TITLE>')
videoWindow.document.write('</HEAD>')
videoWindow.document.write('<BODY BGCOLOR="#123456"><CENTER>')
videoWindow.document.write('<SCRIPT>top.document.title =
"'+theTitle+'"</SCRIPT>')
videoWindow.document.write('<TABLE BORDER="0" CELLPADDING="8"><TR><TD
ALIGN="CENTER">')
videoWindow.document.write('<OBJECT
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="'+movWidth+'" HEIGHT="'+movHeight+'"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><PARAM
NAME="src" VALUE="'+theFile+'.mov"><PARAM NAME="autoplay"
VALUE="true"><PARAM NAME="controller" VALUE="true"><EMBED
SRC="'+theFile+'.mov" WIDTH="'+movWidth+'" HEIGHT="'+movHeight+'"
AUTOPLAY="true" CONTROLLER="true"
PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>')
videoWindow.document.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,theFile,windWidth,windHeight,movWidth,movHeight)
{
videoWindow = window.open('about:blank', 'new',
'width='+windWidth+',height='+windHeight+',status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes')
videoWindow.document.write('<HTML>')
videoWindow.document.write('<HEAD>')
videoWindow.document.write('<TITLE>'+theTitle+'</TITLE>')
videoWindow.document.write('</HEAD>')
videoWindow.document.write('<BODY BGCOLOR="#123456"><CENTER>')
videoWindow.document.write('<SCRIPT>top.document.title =
"'+theTitle+'"</SCRIPT>')
videoWindow.document.write('<TABLE BORDER="0" CELLPADDING="8"><TR><TD
ALIGN="CENTER">')
videoWindow.document.write('<OBJECT
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
WIDTH="'+movWidth+'" HEIGHT="'+movHeight+'"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><PARAM
NAME="src" VALUE="'+theFile+'.mov"><PARAM NAME="autoplay"
VALUE="true"><PARAM NAME="controller" VALUE="true"><EMBED
SRC="'+theFile+'.mov" WIDTH="'+movWidth+'" HEIGHT="'+movHeight+'"
AUTOPLAY="true" CONTROLLER="true"
PLUGINSPAGE="http://www.apple.com/quicktime/download/"></EMBED></OBJECT>')
videoWindow.document.write('</TD></TR></TABLE></CENTER></BODY></HTML>')
}