
June 3rd, 2004, 06:08 AM
|
 |
Contributing User
|
|
Join Date: Mar 2004
Location: UK
Posts: 160
Time spent in forums: 9 h 5 m 50 sec
Reputation Power: 5
|
|
I suppose you could create a php page which accepted one argument in the url.
So, you would have a page called frameset.php. In it, you would have code similar to this:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?php if ($_GET['hide'] == "yes") { ?>
<frameset frameborder="NO" border="0" framespacing="0">
<frame src="maincontent.htm" name="mainFrame">
</frameset>
<?php } else { ?>
<frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
<frame src="menu.htm" name="leftFrame" scrolling="NO" noresize>
<frame src="maincontent.htm" name="mainFrame">
</frameset>
<?php } ?>
<noframes><body>
</body></noframes>
</html>
Then, if you went to frameset.php?hide=yes, the left menu would be hidden.
|