I can’t post a link to the site as it’s internal. But I thought it might be helpful to see a screen shot (see attached) of the top page showing the selected tab instance ‘Materials and Systems’ which is the selected #iframe content. In turn the nested tab instance ‘Concrete Slabs - Sealers’ is selected and that content is showing up in a <div> within the iframe. It’s all working fine but I would like to change it so the ‘Materials and Systems’ content is solely in the #iframe so the scroll bar affects only that content and the subcontent is static.
The code on the top page :
Code:
<div id="navbar1">
<ul id="knowledgetabs" class="shadetabs">
<li><a href="#" rel="#default" class="selected">Welcome</a></li>
<li><a href="BuildingCodes.html" rel="maincontent" >Building Codes</a></li>
<li><a href="GeneralRefStdsMaterials.html" rel="maincontent">Reference Standards</a></li>
<li><a href="Division_NavBar.html" rel="#iframe">Materials and Systems</a></li>
</ul></div>
<div id="maincontent"> </div>
<script type="text/javascript">
var titles=new ddajaxtabs("knowledgetabs", "maincontent")
titles.setpersist(true)
titles.setselectedClassTarget("link") //"link" or "linkparent"
titles.init()
titles.onajaxpageload=function(pageurl){
if (pageurl.indexOf("Division_NavBar.html")!=-1){
}
}
</script>
and the code on the Division_NavBar.html page:
Code:
<div id="subtabs">
<h3>CSI Divisions</h3>
<!-- CSI Div 3 -->
<p class="csidiv">Division 3 - Concrete</p>
<p class="subheader">Guidelines </p>
<ul>
li><a href="#" rel="#default" class="selected">Welcome</a></li>
<li><a href="Concrete_Sealers.html" rel="subcontent">Concrete Slabs - Sealers</a>
</li>
<li>
<a href="Concrete_Slabs_Essential_Input.html" rel="subcontent">Concrete Slabs -
Input to the Structural Engineer</a>
</li>
</ul>
</div>
<div id="subcontent">
</div>
<script type="text/javascript">
var subtitles=new ddajaxtabs("subtabs", "subcontent")
subtitles.setpersist(true)
subtitles.setselectedClassTarget("link") //"link" or "linkparent"
subtitles.init()
</script>
Do you still recommend I implement the code in your last post? And if so I wasn't clear on the proper syntax for the instance. Thanks....
Bookmarks