View Full Version : css left/right dynamic

07-30-2012, 11:13 PM

need help with the below type of css.
when i click on left menu, it dynamically changes on the right..

i know, it will have 4 div layers and master div layer
and tab1, tab2, tab3 etc..

but more help in detail on how to achieve this would be appreciated, and thats where i need help with.
thank you in advance.


07-31-2012, 12:20 AM
Use a jQuery Content Switcher

Something like this.

<ul id="navigation">
<li><a href="#" data-id="one">1</a></li>
<li><a href="#" data-id="two">2</a></li>
<div id="one" class="page">
Put content here...
<div id="two" class="page">
Put content here...


var id = $(this).attr("data-id"); //get id for the page you wanna show
$(".page").hide(); //hide all pages with content could use fadeOut or something
$("#" + id).fadeIn(); //fade in the page you wanna show