I recently borrowed and tweaked code I saw written by AnarchY SI at
website-design-forum/open-video-new-window-t42596.html. I tried to let you view the problem (and get the code via 'View Source') but it turns out I'm not allowed to post external links, so I have copied the code between the sets of double lines below, after which I will state the problems I encounter:
===================================================
Main page:
<html>
<head>
<title>Movie Opener</title>
<link rel="stylesheet" type="text/css" href="mov.css">
</head>
<body>
<a href="#stayhere" onclick="window.open('-LLh81for ix _Thanksgiving.htm', 'movieWindow', 'innerWidth=400,height=500,width=690,statusbar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no')">FOR IX THANKSGIVING</a>
<br>
<a href="#stayhere" onclick="window.open('Oh159 car-stop finish, woman _sweet, look-up.htm', 'movieWindow2', 'innerWidth=400,height=500,width=690,statusbar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no')">CAR-STOP, WOMAN, SWEET, LOOK-UP</a>
</body>
</html>
One of the two Child Windows:
<html>
<head>
<title>car-stop finish, woman _sweet, look-up</title>
<link rel="stylesheet" type="text/css" href="mov.css">
</head>
<body>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="<link to apple's quicktime plug-in>">
<param name="src" value="Oh159 car-stop finish, woman _sweet, look-up.mov" />
<param name="controller" value="true" />
<object type="video/quicktime" data="Oh159 car-stop finish, woman _sweet, look-up.mov" align="left" width="704" height="490" class="mov">
<param name="controller" value="true" />
Uhm...there was an error. Oops.
</object>
</object>
</body>
</html>
===========================================
I have two problems with it:
(1) It more or less works (but see problem 2 below) in two environments that I have tested (Firefox on Windows 7 and XP, TenFourFox on Mac OS 10.5.8 ), but leads to tiny truncated video windows - cropped to about one fifth size - on two others (Internet Explorer on Windows 7 and XP, Safari on Mac OS 10.5.8 ). And the truncated window dimensions are not even the same in the latter two environments.
(2) Even in the environments where it more or less works, it does not appear exactly as I would like. What I want is (a) for the url not to show up at the top, but all the window.open() parms I can find that might prevent that (location=no, fullscreen) seem to have no effect; and (b) for there to be no whitespace border around the video; that is, I want it to go right to the edge of the window border. I succeed in getting the bottom and right edges of the window to be where I want by appropriate choices of width and height, but I can't seem to get rid of the white margins at the left edge and the top; align is apparently for text only, while setting hspace and vspace to 0 have no effect, which is hardly surprising since their default values are 0 anyway.
Thanks in advance for your help!
P.S. And just so I understand this better, what's the reason for the <object> within an <object>? Apparently for IE vs. Mac since there's also a css page to hide the second object for IE, but why?