バナーを作ろうとしています。バナーは幅と高さのパーセンテージで作られています。ボディがロードされると、すべての解像度で見栄えが良くなります。しかし、私のコードは機能していないようです。どなたかご覧いただければ幸いです。
<script>
function load()
{
document.write("Available Width: " + Math.round((screen.availWidth)/5));
a=document.getElementById('banner');
a.style.width=Math.round((screen.availWidth));
a.style.height=Math.round((screen.availHeight)/5);
}
</script>