Solved

HTML Frames

Posted on 2003-11-10
4
197 Views
Last Modified: 2010-04-09
I want to make a home page (index.html) with two choices - English and Chinese.
After enter English or Chinese, the pages will go to Frames.
Under English, I have upper frame(upper_frame.html), left frame (left_eng.html), and main frame (open_eng.html).  Under Chinese, it is the same structure (upper_frame_chinese.html, left_chinese.html, and open_chinese).  The left frames works as guide.  the upper frames display some info.  The main frames are my main pages.  

I want to be able to go back to the home page (index.html) by select the home page link in the upper frames and left frames.   The problem is that when I select the home page link in the upper frames or left frames, the home page is displayed only in the upper frames or left frames but the other old frames are not cleared.  How can I get back to my home page and clear all the old frames at the same time.

Below are my html files.

index.html
<html>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
      <TABLE WIDTH = "100%" HEIGHT = "50%" BGCOLOR = "#ffffff">
            <tr>
                  <td width="25%" height="30%"><a href="english.html" style="border-style: solid; border-color: #800080"><font face = "Arial" size = "8" color = "#0000FF">English</font></a></td>
                  <td width="30%" height="30%"><a href="chinese.html" style="border-style: solid; border-color: #800080"><font face = "Arial" size = "8" color = "#0000FF">Chinese</font></a></td>
            </tr>
      </TABLE>
</BODY>
</html>

english.html

<html>
<frameset rows="10%,90%" frameborder = "no">
      <frame src="upper_frame.html" scrolling = "no">
      <frameset cols="185, *" frameborder = "no">
            <frame src="left_eng.html">
            <frame src="open_eng.html" name="showframe">
      </frameset>
</frameset>
</html>

left_eng.html

<br><b><font face="Arial" size ="2"><a href = "contact_us.html" target ="showframe">English Contact us</font></a></b>
      <br><b><font face="Arial" size ="2"><a href = "open_eng.html" target ="showframe">English Home</font></a></b>
      <br><b><font face="Arial" size ="2"><a href = "index.html">Home Page</font></a></b>

upper_frame.html

<HTML>
<BODY>
<TABLE WIDTH = "100%" HEIGHT = "2%" BGCOLOR = "#ffeeff">
      <tr>            <td valign = "middle" align = "center" width = "35%" height = "100%" bgcolor = "#3ea1cc">English Upper frame&nbsp;&nbsp;&nbsp;&nbsp;<A href = "index.html"><b><font face="Arial" color="#544C4C" size="4">www.goldensourceusa.com</font></b></a></td>
      </tr>
</TABLE>
</BODY>
</HTML>

open_eng.html

<HTML>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE WIDTH="800" ALIGN="center" NAME="outertable" ID="outertable" >
                  <TABLE WIDTH = "100%" HEIGHT = "100%" bgcolor = "#bbccaa" >
                        <b><td><font face = "Arial" size = "6" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;English Home</font></td></b>
                  </TABLE>
</TABLE>
</BODY>
</HTML>

contact_us.html

<HTML>
<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<TABLE ALIGN="center" NAME="outertable" ID="outertable" BGCOLOR = "#f3f8f8">
                  <TABLE WIDTH = "100%" HEIGHT = "100%" BGCOLOR = "#fe11f8">
                        <b><td align = "center" > <font face = "Arial" size = "6" color = "#000000"> Contact Us in English</font></b></td>
                  </TABLE>
</TABLE>
</BODY>
</HTML>

0
Comment
Question by:wzhu58
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 250 total points
ID: 9716776
Add the target attribute to reload the entire frameset:

<font face="Arial" size ="2"><a href = "index.html" target="_top">Home Page</font></a></b>
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9716793
In clearer english :-)
Add the target attribute to "replace" the entire frameset.
0
 

Author Comment

by:wzhu58
ID: 9717001
Thank you georgemarian.

0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9717130
You're welcome!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now