Milton
4/23/2004 12:55:00 PM
I cannot make this work at all. I tested by taking a button and when clicked, running the javascript. The frame sizes do not change at all. My frames are simple as you can see below. The button and script run from the "top" frame and are as follows:
<script language="javascript">
function b1script() {
parent.document.all("main").rows="20%,5%,70%";
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Bankruptcy CM/ECF Apps</title>
</head>
<frameset rows="20%,*,40%" framespacing="0" border="0" frameborder="0">
<frame name="top" scrolling="no" target="contents" src="top.asp" >
<frame name="main" src="welcome.htm" target="lower" scrolling="auto" >
<frame name="bottom" scrolling="auto" target="contents" src="blank.htm">
<noframes>
<body>
<p>This page uses frames, but your browser doesn't support them.</p>
</body>
</noframes>
</frameset>
</html>
thanks
Milton_Snider@ao.uscourts.gov
"Skydolphin" <anonymous@discussions.microsoft.com> wrote in message news:166C3DDD-BB91-4475-9B34-AA8460D32CB9@microsoft.com...
> You can use javascript to resize a frame.
> This would remove the middle frame.
> parent.document.all("middleFrame").rows="20%,*,80%"
>
> This would reduce the middle frame.
> parent.document.all("middleFrame").rows="20%,10%,70%"
>
> Rhonda