SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 2nd, 2004, 10:05 PM
geordei geordei is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 geordei User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how to show/hide frame in webpage?

I create a webpage with 4 frames, i want the viewer can show/hide the frame by press a button, how can we do this?

any kind of language is fine, php, javascript, xhtml, just to do the function

Reply With Quote
  #2  
Old June 3rd, 2004, 06:08 AM
edwinbrains's Avatar
edwinbrains edwinbrains is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: UK
Posts: 160 edwinbrains User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > how to show/hide frame in webpage?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway