I need to be able to dynamically assign a variable to the height attribute of a div(flashOverlay) based on the height and t position of another div(pageContent). I am using the following script to capture the variable data. How do I apply this var to the div?
<script type="text/javascript">
<!--
onload=function() {
var divh = document.getElementById('pageContent').offsetHeight;
alert(divh +460+"px");
}
//-->
</script>
The div I also has the following style applied using external CSS file
#flashOverlay{
TOP: 0px;
LEFT: 0px;
POSITION: absolute;
Z-INDEX: 20;
visibility: visible;
overflow: auto;
margin: 0px;
width: 100%;
padding: 0px;
vertical-align: top;
height: 1054px;
}