Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame height resize on click

Status
Not open for further replies.

webmast

Programmer
Dec 21, 2001
57
IN
Hi,

I have designed a frameset page.

Example index.htm
-------
<frameset rows=&quot;293,*&quot;>
<frame src=&quot;homepage.htm&quot; name=&quot;main&quot;>
<frame src=&quot;news.htm&quot; name=&quot;body&quot;>
</frameset>

Now on the news.htm, I will have two buttons to minimize and restore the window. By doing this the person browsing can utilize more space on the screen for the homepage, but incase he wants to go through the news he can restore it back or minimize it as required.

Kindly help me on the solution as I am not that good in scripting...

Thanx in advance...

Tommy...
 
I have something similar with a search frame...the user presses a button that calls the following function.

var showsearchflg = true;
function hideSearch(){
if ( showsearchflg == false){
topFrame.hideSearch(); ... this bit is hiding elements in the topFrame
frset.rows = &quot;110px,400*&quot;;
showsearchflg = true;
}
else{
topFrame.showSearch(); ... this bit is hiding elements in the topFrame
frset.rows = &quot;170px,400*&quot;;
showsearchflg = false;
}
}

The functions in the topFrame are...

function hideSearch(){
document.getElementById(&quot;table_wssearch_results3&quot;).style.display = &quot;none&quot;;
}
function showSearch(){
document.getElementById(&quot;table_wssearch_results3&quot;).style.display = &quot;block&quot;;
}

In this way I am hiding and showing a table at the click of the button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top