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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Framing" without Frames

Status
Not open for further replies.

StevenB

IS-IT--Management
Sep 25, 2000
247
US
Howdy, yet another novice question for you all.

I'm trying to develop a relatively simple web site with the typical left-hand navigation menu, right-hand content idea.

Apart from frames, what options are out there that would allow me to select an item from my navigation menu and display the appropriate content in my content area? The key is, this is a simple HTML host, I can't do CGI or ASP or anything like that.

My left-hand menu is a simple JavaScript menu, but so far the only thing I can come up with is creating multiple pages each with all of the menu code in it. That's ugly in a big way.

Any thoughts?

Steve
 
DIV - "Oops! I've joined a club that'll have me as a member?" -
 
I agree with tjd, use divs : one for the menu, the second one for main display. You've got another solution : create a js file in wich you dynamicaly create your menu (with document.write for exemple) and include this script at the rigth place in all your display pages like this :
Code:
...
<body>
<Table width=&quot;100%&quot; height=&quot;100%&quot;>
  <tr>
    <TD width=&quot;300px&quot;>
      <Script language=&quot;jscript&quot; src=&quot;createMenu.js&quot;></script>
    </TD>
    <TD width=&quot;300px&quot;>
      put here main display content.
    </TD>
  </TR>
</table>
</body>
...

Water is not bad as long as it stays out human body ;-)
 
The problem with using divs is that the content for all the pages accessible from the menu must load together.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top