From his photo, I think that Bob is big enough to look after himself, but since I am around and Bob isn't, I hope he will forgive me for answering on his behalf.
Bob's script is written as a function,
setplay , such that
thisfile ,
ww and
hh are specified when it is called, eg.
setplay('myvid1.wmv', '320', '240'); .
I think you will find that IE will play ball with it as posted, but Moz browsers need 'px' to be specified explicitly.
<script type="text/javascript">
<!--//
function setplay(thisfile,ww,hh) {
document.getElementById("MediaPlayer1").src=thisfile;
document.getElementById("MediaPlayer1").style.width=ww+'px';
document.getElementById("MediaPlayer1").style.height=hh+'px';
}
//-->
</script>
Alternatively, leave Bob's code as is giving you the freedom to call with
setplay('myvid1.wmv', '320px', '240px'); ,
or
setplay('myvid1.wmv', '100%', '100%'); ,
as required.
If width and height need calculating, then
var width = expression;
var height = expression;
setplay('myvid1.wmv', width+'px', height+'px');
Airshow