Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTML Frames

Posted on 2003-11-10
4
Medium Priority
?
204 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

610 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