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

vertical menu and text

Status
Not open for further replies.

newbby

Programmer
Mar 16, 2004
36
US
All,
I have a vertical menu appearing on the left side. On clicking the link from the vertical menu, how can I make the page/text appear on the right side? Are there any alternative to using frames? Thanks
 
If you are using JSP or any other scripting language..

(1) Create a JSP file called menu.jsp which contains the code for the vertical menu
(2) Create a template file called main.jsp which looks like

Code:
<div id="l-menu">
   <%@ include page="menu.jsp" %>
   // links in menu.jsp - main.jsp?page_name=contact.jsp
   //                     main.jsp?page_name=faq.jsp
   //etc  
</div>
<div id="l-main">
      // read the page_name property and include the page here
</div>

Hope it makes sense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top