So if i get you right
<div id="category 1"> will be the content of the div so images and text etc...
and
<p onclick="toggleDivs(1);">Category 1</p> is the link that toggles div 1 to be shown within its container??
the HTML i had now for setup of the "menu":
HTML Code:
<div id="threecategories">
<ul>
<li class="active"><a class="item cardrawings">Car Drawings</a></li>
<li><a class="item thdmodeling">3D modeling</a></li>
<li><a class="item other">Other</a></li>
</ul>
</div>
for the CSS i dont quite get it yet 
i have this:
CSS:
Code:
#threecategories {
height:40px;
width:354px;
position:absolute;
top:0px;
right:100px;
}
#threecategories ul {
float:left;
}
#threecategories ul li {
list-style:none;
display:block;
height:40px;
width:118px;
float:left;
padding: 0 0 0 0;
text-align:center;
}
#threecategories ul li a {
color:#fff;
display:block;
text-decoration:none;
font-size:10px;
font-weight:bold;
text-transform:uppercase;
height:100%;
line-height:40px;
margin-left:0px;
}
#threecategories li a.cardrawings {
background:url(../images/cardrawingsunselect.jpg) no-repeat left;
color:#fff;
text-decoration:none;
}
#threecategories li a:hover, #threecategories li.active a{
background:url(../images/cardrawingselect.jpg) no-repeat left;
color:#fff;
cursor:pointer;
text-decoration:none;
}
#threecategories li a.thdmodeling {
background:url(../images/thdmodelingunselect.jpg) no-repeat left;
color:#fff;
text-decoration:none;
}
#threecategories li a.thdmodeling:hover, #threecategories li.active a.thdmodeling {
background:url(../images/thdmodelingselect.jpg) no-repeat left;
color:#fff;
cursor:pointer;
text-decoration:none;
}
#threecategories li a.other {
background:url(../images/otherunselect.jpg) no-repeat left;
color:#fff;
text-decoration:none;
}
#threecategories li a.other:hover, #threecategories li.active a.other {
background:url(../images/otherselect.jpg) no-repeat left;
color:#fff;
cursor:pointer;
text-decoration:none;
}
if possible could you help me out implement this in the current code i have now??
Im really bad when it comes to Javascript =/ this is my first time working with it hehe...
Bookmarks