我有一个 javascript adplayer 脚本,我想在浏览器窗口大小更改时动态调整其大小。我该怎么做?
<script type="text/javascript">
var rnd = window.rnd || Math.floor(Math.random()*10e6);
var pid155420 = window.pid155420 || rnd;
var plc155420 = window.plc155420 || 0;
var abkw = window.abkw || '';
var absrc = 'http://servedby.myexampledomain.com/adserve/;ID=162421;size=468x60;setID=155420;type=js;kw=' +abkw+';pid='+pid155420+';place='+(plc155420++)+';rnd='+rnd+'';
document.write('<scr'+'ipt src="'+absrc+'" type="text/javascript"></scr'+'ipt>');
</script>
</div>