6,8d5 < var sw=0; < var sh=0; < var rectis=null; 16,18d12 < sw=eval('' + screen.width); < sh=eval('' + screen.height); < rectis=document.getElementById('ifblank').getBoundingClientRect(); 31,35d24 < function resz() { < //alert('sw=' + sw + ' and now window.innerWidth=' + window.innerWidth); < document.getElementById('ifblank').style.width='' + eval(eval('' + rectis.width) * eval(sw / window.innerWidth)) + 'px'; < document.getElementById('ifblank').style.height='' + eval(eval('' + rectis.height) * eval(sh / window.innerHeight)) + 'px'; < } 38,39c27,28 <
<
---
>
>
|