Solved

HTML Frames

Posted on 2003-11-10
4
202 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 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