Return to Snippet

Revision: 15343
at July 1, 2009 10:31 by leonardreinders


Initial Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>Untitled</title>
	<style type="text/css">
    	body, tr,td{
	    	font-family: Arial, sans-serif;
	    	font-size:11px;
	    }
		div#divafb{
			width:350px;
			overflow-y:auto;
			margin-right:8px;
			height:400px;
			height:expression((document.body.clientHeight-20)+"px");
			background-color:#ececec;
			border:1px solid black;
		}
    </style>
	<script language="javascript">
	    onload=function(){
			if(document.getElementById("divafb")&&navigator.appName=="Netscape"
			){
				window.onresize=tmp=function(){
					document.getElementById("divafb").style.height=(document.body.clientHeight-20)
				}
				tmp()
			}
		}
		
    </script>
</head>

<body>
<div id="divafb">
</div>
</body>
</html>

Initial URL

                                

Initial Description

                                

Initial Title
div height adjustment on pageload

Initial Tags

                                

Initial Language
JavaScript