Ok, im trying show/hide the left menu frame using a link in the top frame, but when I click the link it closes it self and not the menu frame. How can I get the top frame to close only the menue frame and not its self? if you didn't understand that look at the code you'll know what im talking about.
Here is the frame code
And here is the top link thats suppose to show and hide the left frame (it must be saved as "home.html" in the same directory as the code aboveCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled</title> <script type="text/javascript"> var columntype="" var defaultsetting="" function getCurrentSetting(){ if (document.body) return (document.body.cols)? document.body.cols : document.body.rows } function setframevalue(coltype, settingvalue){ if (coltype=="rows") document.body.rows=settingvalue else if (coltype=="cols") document.body.cols=settingvalue } function resizeFrame(contractsetting){ if (getCurrentSetting()!=defaultsetting) setframevalue(columntype, defaultsetting) else setframevalue(columntype, contractsetting) } function init(){ if (!document.all && !document.getElementById) return if (document.body!=null){ columntype=(document.body.cols)? "cols" : "rows" defaultsetting=(document.body.cols)? document.body.cols : document.body.rows } else setTimeout("init()",100) } setTimeout("init()",100) </script> <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD> <frameset rows="64,*"> <frame name="top" scrolling="no" noresize src="home.html"> <frameset cols="150,*"> <frame name="contents" src="frmleft1.html"> <frame name="main" src="frmmain1.html"> </frameset> </frameset> </head> <body> </body> </html>
I would really appreciate the help so that I can continue on my projectCode:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled</title> <a href="javascript:parent.resizeFrame('5,*')">Show/Hide Left Frame</a> </head> <body> </body> </html>![]()


Reply With Quote
Bookmarks