/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!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>