View Full Version : need help customizing DD Tab Menu

06-04-2007, 05:38 PM
1) Script title: DD Tab Menu

2) Script URL: http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm

3) I wonder if someone might help me customize DD Tab Menu for my particular situation? Because of the CMS I'm using, I'm not able to assign a "rel" attribute to my menu links; I can, however, assign a unique "id" to each one. So, I can generate the following:

<div id="ddtabs" class="basictab">
<li><a href="/url/" id="sc1" class="current">home</a></li>
<li><a href="/url/work/" id="sc2">work</a></li>
<li><a href="/url/customers/" id="sc3">customers</a></li>
<li><a href="/url/blog/" id="sc4">blog</a></li>
<li><a href="/url/contact/">contact</a></li>

<div class="tabcontainer">
<div id="sc1" class="tabcontent">
<p>Return to the home page</p>
<div id="sc2" class="tabcontent">
<p>Services and samples</p>
<div id="sc3" class="tabcontent">
<p>What our clients have to say about our work</p>
<div id="sc4" class="tabcontent">
<p>On writing, the business of writing, and business writing</p>

But I don't know how to alter ddtabmenu.js to make it work using the id attribute rather than the rel attribute in the ddtabs div. Thanks in advance for any help anyone might offer.

06-04-2007, 09:44 PM
sorry, I just realized I'm trying to use the same ids twice on the same page (duh!)..