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

Change content in a div from a menu

Status
Not open for further replies.

baggen

Technical User
Aug 18, 2007
6
SE
Hi everybody!
I'm a CSS-newbie, so please have patience...
Issue: I have a CSS-page. In this page I have a menu. Here's the code:
<div id="left">
<div id="sub_left">
<div class="navcontainer">
<ul class="navlist">
<li><a href="#">Test1</a></li>
<li><a href="#">Test2</a></li>
<li><a href="#">Test3</a></li>
<li><a href="#">Test10</a></li>
<li><a href="#">Test20</a></li>
<li><a href="Test30.asp" target="_top">Test30</a></li>
</ul>
</div>


When I click on Test1, I want to show the content of a html or an asp-page in a div called main_content (<div id="main_content">). When I click on Test2, I want to show some other text from another html-page in the same div, but the content from Test1 should be removed.
Can this be done?
Please let me know if I'm indistinct.
/Paul
 
It can be done, but not with CSS or html alone. You need some kind of server-side language like ASP to include and display the text you want to show.

It should be a simple matter using whatever include method ASP uses, but falls outside the scope of this forum, so I would suggest you post this in the forum333.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Ok. Appreciate the fast respons. I'll switch to the asp-forum.

/Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top