The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

iFrame Help

I am trying to put an iFrame as my main content box so that, when a user clicks a link at the top, it will appear in the iFrame. (links would be target="content" or something to that..)

I am not sure how to do it. Below is my code for the main body...Any help?

HTML Code:

<tr><td colspan="4" bgcolor="#003366"><img src="mm_spacer.gif" alt="" width="1" height="1" border="0" /></td></tr><tr><td width="40">&nbsp;</td><td colspan="2" valign="top">&nbsp;<br />&nbsp;<br /><table border="0" cellspacing="0" cellpadding="2" width="504"><tr><td class="pageName">Welcome to MySlashTruck.COM! </td></tr><tr><td class="bodyText"><p style="margin-top: 0;">Welcome to MySlashTruck.COM, where we supply all of your truck needs! Please take this opportunity to explore our site, and look at the many different things we have to offer! Please also do take time to explore our forums where you may engage with other people who own slash trucks, and may get help on what to buy/get for your Slash Truck!</p></td></tr></table><br /></td>

That's usually not a good idea because a search engine crawler won't see that, which could result in a lower ranking since the content is not indexed. It's also not very accessible because the URL stays the same. I would advise against doing this and just using multiple files.

If you're having trouble maintaining the pages then you could make use of server-side includes ( such as the include() function in PHP ).