I'm trying to format my listing page with tabbed content and I'm stuck. My trouble is I need my tabs to display only if there is content in them. What is happening with my current code is the tabs are only displaying if there is content for that section, but the content for those empty sections is bumping over into the visible tabs making the information off by one or two tabs (depending on the page). Anybody know how to fix this?? Please take a look at this page so you can see what I mean. Thanks!
https://waynedaltonparts.3dcartstore...iver_p_79.html
https://waynedaltonparts.3dcartstore...iver_p_79.html
HTML Code:
<div id="TabbedPanels1" class="TabbedPanels"> <ul class="TabbedPanelsTabGroup"> <li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_Header-description]</li> <!--START: extra_field_6--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_extrafield6]</li><!--END: extra_field_6--> <!--START: extra_field_7--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_extrafield7]</li><!--END: extra_field_7--> <!--START: extra_field_8--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_extrafield8]</li><!--END: extra_field_8--> <!--START: extra_field_9--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_extrafield9]</li><!--END: extra_field_9--> <!--START: extra_field_10--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[product_extrafield10]</li><!--END: extra_field_10--> <!--START: reviews--><li class="TabbedPanelsTab" tabindex="0" onmouseover="TabbedPanels1.showPanel(this);">[reviews_header]</li><!--END: reviews--> </ul> <div class="TabbedPanelsContentGroup"> <div class="TabbedPanelsContent">[extended_description]</div> <!--START: extra_field_6--><div class="TabbedPanelsContent">[extra_field_6]</div><!--END: extra_field_6--> <!--START: extra_field_7--><div class="TabbedPanelsContent">[extra_field_7]</div><!--END: extra_field_7--> <!--START: extra_field_8--><div class="TabbedPanelsContent">[extra_field_8]</div><!--END: extra_field_8--> <!--START: extra_field_9--><div class="TabbedPanelsContent">[extra_field_9]</div><!--END: extra_field_9--> <!--START: extra_field_10--><div class="TabbedPanelsContent">[extra_field_10]</div><!--END: extra_field_10--> <!--START: reviews--><div class="TabbedPanelsContent"> <table width="100%" cellpadding="1" cellspacing="1" border="0"> <tr> <td colspan="4"><table width="100%" cellpadding="2" cellspacing="0" class="titles"> <tr> <td class="titles"> [reviews_header]</td> <td align="right" class="titles"><span class="item"><strong>[reviews_total] [totalrating]</strong> [review_link]</span></td> </tr> </table></td> </tr> <!--START: user_reviews--> <tr> <td><table width="100%" cellpadding="4" cellspacing="0"> <tr> <td align="left" width="80" class="checkout-headers"><img src="assets/templates/common/images/star[rating].gif" alt=""></td> <td class="checkout-headers"><strong>[short_review]</strong></td> </tr> <tr> <td> </td> <td class="item">[long_review]</td> </tr> <tr> <td> </td> <td class="item">Reviewed by: <strong>[user_name]</strong> from [user_city]. <!--START: user_email--> <a href="mailto:[user_email]">[user_email]</a> <!--END: user_email--> on [review_date]</td> </tr> </table></td> </tr> <!--END: user_reviews--> </table> </div><!--END: reviews--> </div> </div> <script type="text/javascript"> var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", { defaultTab: 0 }); </script>
Comment