Thinking about this a bit more, you could probably take a more direct approach. This is a stand alone command (has nothing to do with the script) that should do that, with the excess height being given to the bottom frame row in the frameset:
Code:
parent.document.getElementsByTagName('frameset')[1].rows='14%,18%,0%,*';
If you want the excess distributed differently, adjust the other percentages. To restore it to its original setup:
Code:
parent.document.getElementsByTagName('frameset')[1].rows='14%,18%,8%,*';
Notes: If I had a link to your page, I could double check in a few browsers for compatibility. You can use these commands like:
HTML Code:
<a href="javascript:void(parent.document.getElementsByTagName('frameset')[1].rows='14%,18%,8%,*');">restore</a>
or:
HTML Code:
<a href="#" onclick="parent.document.getElementsByTagName('frameset')[1].rows='14%,18%,0%,*';return false;">collapse</a>
Bookmarks