Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refreshing IE refreshes title image

Status
Not open for further replies.

Angelis26

Technical User
Nov 19, 2003
14
0
0
GB
HI,

I have a web page (default.htm) consisting of a table (2 rows and 2 columns). First cell consists of a logo. Cell on the right consists of the title image (about us, contact us etc).
On the left hand side i have a menu with 3 different options. When i click on the menu options the cell on the righthand side (iframe) changes to display the correct page and the title image is also updated to show correct name for page (contact us etc...).

However when the refresh button is pressed on IE, the default page refreshes, the iframe is not refreshed (which is what i want). But the title image also reverts back to the about us image.

What i want to know is, is there a way to stop the title image from refreshing? becuase when the page is refreshed whilst on the contact us page, the title image is reverted back to about us.

I have attached the code below.
<body>
<table>
<tr>
<!--Top left Logo-->
<td>
<img src="images/logo.gif" name="logo"> </td>
<!--Top Right Title-->
<td>
<img src="images/aboutus.gif" id="title1"> </td>
</tr>
<tr>
<td>

<table border="0">
<tr>
<td bgcolor="#053c6d">
<p>
<a href="aboutus.htm" target="mainframe" onMouseDown="MM_swapImage('title1','','images/aboutus.gif',1)">About Us
</a>
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="test.htm" target="mainframe" onMouseDown="MM_swapImage('title1','','images/test.gif',1)">Test
</a>
</p>
</td>
</tr>
<tr>
<td>
<p>
<a href="contactus.htm" target="mainframe" onMouseDown="MM_swapImage('title1','','images/contactus.gif',1)">Contact Us
</a>
</p>
</td>
</tr>
</table>

<table>
<tr>
<td width="600">
<iframe name="mainframe" id="mainframe" src="aboutus.htm" width="300" frameborder="0" scrolling="no">
</iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>

thanks

Angelis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top