Code: Select all
<table width="720" height="352" align="center" id="vlct">
<tr><td>
<object width="100%" height="100%" id="vlc" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"></object>
</td></tr>
</table>
<script language="javascript">
dw = document.body.clientWidth*0.8; // width is 80% of browser
dh = dw/720*352; // maintain aspect ratio
document.getElementById('vlct').style.height = dh; // set height
document.getElementById('vlct').style.width = dw; // set width
</script>
Users browsing this forum: No registered users and 31 guests