How can I set the size of layer in JavaScript?
My script works only after layers loading.
I need to set size of the layer before his
loading starts.
Help please
My script:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<div id="layer1" style="position:absolute; width=200px; height:154px;; left: 69px; top: 47px; background-color: #FF0000; ">
</div>
<script language="JavaScript" type="text/javascript">
document.all.layer1.style.width = 761;
document.all.layer1.style.height = 86;
</script>
</body>
</html>
My script works only after layers loading.
I need to set size of the layer before his
loading starts.
Help please
My script:
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<div id="layer1" style="position:absolute; width=200px; height:154px;; left: 69px; top: 47px; background-color: #FF0000; ">
</div>
<script language="JavaScript" type="text/javascript">
document.all.layer1.style.width = 761;
document.all.layer1.style.height = 86;
</script>
</body>
</html>