Jump to content

Iframes problem with targets


mindspin311

Recommended Posts

I have a layout like so:

 

-----------------------------

| Header                            |

-----------------------------

| Menu | Content                |

|        |                            |

|        |                            |

|        |                            |

|        |---------------------

|        | Footer                  |

-----------------------------

 

The header, menu, and footer are pretty much static and never change. Content will be scrollable and the target of the links in the 3 previous mentioned frames. I'm having a problem getting the target to work.

 

Here's what I have for the index.htm

 

<table width = "800px" cellspacing = "5" cellpadding = "5">
  <tr>
    <iframe src="header.htm" width="800px" height="100px" frameborder="0" scrolling="no"></iframe>
  </tr>
  <tr>
    <td valign="top" width="192px">
      <iframe src="menu.htm" width="192px" height="700px" frameborder="0" scrolling="no"></iframe>
    </td>
    <td>
      <table valign="top">
      <tr>
        <td class="content">
          <iframe target = "_content" src="test.htm"></iframe>
        </td>
      </tr>
      <tr>
        <td class="footer">
          <iframe src="startpage.htm"></iframe>
        </td>
      </table>
    </td>
  </tr>
</table>

 

And here's what I have for header.htm which should change the content frame

 


<a href="startpage.htm#_content"><img border=0 src="images/title.jpg" /></a>

 

What am I doing wrong here?

Link to comment
https://forums.phpfreaks.com/topic/91702-iframes-problem-with-targets/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.