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
Solved

Need an Html code that can be used as default for all pages.Just the content inside the box needs to change. Any help

Posted on 2007-11-19
3
147 Views
Last Modified: 2012-03-15
Hi,

Need an Html code that can be used as default for all pages.Just the content inside the box needs to change. All the data in and around the page is should be same.So that i can change the text inside it and change the links according to my requirmnt.
Any way of doing this with some software that you have a easy way..With some complex functionality.
I have tried many editors but none works good for me and others are payed which i cannot pay for a one time job...
Can any one create one page for me with all common used data.
Regards
Sharath
0
Comment
Question by:bsharath
3 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 20311545
You could create this one page and have an <iframe> in the middle of it.
Then simply load new content into this iframe to match the link clicked
0
 
LVL 11

Author Comment

by:bsharath
ID: 20311556
Ok...
Can you help with the Main page...
Its all static pages with all common options...What ever you can think off...
0
 
LVL 11

Accepted Solution

by:
siliconbrit earned 500 total points
ID: 20311627

Here is a simple example for your Main Page that assumes you have five underlying pages of content that can populate the iframe.  The links on the left each load a different page into the 'target' named 'content.  I have named the iframe 'content' to demonstrate this.

Please note that you will need 5 additional html pages named 'page1.html, page2.html etc for this to work properly.  Each of these pages should only have the content that will be displayed in the iframe.

The 'src' attribute of the iframe is initially set to 'page1.html' so that it loads this page when the visitor first arrives.
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><a target="content" title="Page One" href="page1.htm">Page One</a></p>&nbsp;</td>
    <td rowspan="5"><iframe src="page1.html" name="content" width="400" height="100%" scrolling="no"></iframe>
</td>
  </tr>
  <tr>
    <td><a target="content" title="Page Two" href="page2.htm">Page One</a></p>&nbsp;</td>
  </tr>
  <tr>
    <td><a target="content" title="Page Three" href="page3.htm">Page One</a></p>&nbsp;</td>
  </tr>
  <tr>
    <td><a target="content" title="Page Four" href="page4.htm">Page One</a></p>&nbsp;</td>
  </tr>
  <tr>
    <td><a target="content" title="Page Five" href="page5.htm">Page One</a></p>&nbsp;</td>
  </tr>
 
</table>

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to link a specific Wordpress Post directly to the main domain (no category!) 12 100
multiple selects 23 48
100% tall div not scrollable on iPhone 3 20
Link failure 16 34
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Not only does Prezi allow you to create non-linear presentations, it also makes it easy to apply transition animations between your frames. Learn how to apply a fade-in transition to select items and entire frames in this tutorial Select "Edit Path"…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

838 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