Forum Moderators: not2easy

Message Too Old, No Replies

main content loads in seperate div tag from a link in anotehr div tag

         

mejnoona

1:22 am on Aug 4, 2008 (gmt 0)

10+ Year Member



Hello
I iknow how to do this in frames but I'm curious to know if there is a way to do this with a div tag as well. And if so, how? Let's say you have 2 div sections and the left one is for the links and the right one is for holding the content when hyou click on the links. Is there a way to make it so when you click on a link in the left div, the content goes into the right div? Otherwise, it will either open a new window all together and you will have to hit the back button in order to get the links to come up again or you have to put the links in your code on every page which is kinda cumbersome. There's got to be a better way! thanks

mejnoona

2:48 am on Aug 4, 2008 (gmt 0)

10+ Year Member



This is the sample code that I'm speaking of.

<div id="left" width="20%">
<ul>
<li><a href="index.htm" >Home</a></li>
<li><span class="style1">Personal</span>Personal</li>
<li><a href="me.htm" target="right">About Me</a></li>
<li><a href="pic.htm">Pics</a></li>
</ul>
</div>

<div id="right" width="80%">
</div>

What I am trying to do is open the links from left div and make the content from those links pop up into the right div. The way I'm trying to do it is not working. Is there a way to get this accomplished?