开发者

Accordion Issue

开发者 https://www.devze.com 2023-03-03 20:01 出处:网络
I am setting up this site at games.nyls.edu.If you see when you click on any of the links on the 2nd column it opens up the first link.heres the code:

I am setting up this site at games.nyls.edu. If you see when you click on any of the links on the 2nd column it opens up the first link. heres the code:

<?php query_posts('categ开发者_如何学运维ory_name=computable-diagrams&showposts=10'); ?>
<?php echo '<a onclick="changeCssClass(\'widget-title3\')" id="imageDivLink" href="javascript:toggle3(\'wp-cpl-widget3\', \'imageDivLink\');"><h3 id="widget-title3" class="widget-title">Computable Diagrams</h3></a> <ul id="wp-cpl-widget3" class="wp-cpl-widget" style="display: none;">'; while (have_posts()) : the_post(); ?>
     <li class="wp-cpl wp-cpl-even"><a href="javascript:toggle9('testcontent3', 'imageDivLink6');">
          <?php the_title(); ?>
          </a>  </li><div id="testcontent3" style="display:none;"><?php the_content();?></div> 
<?php endwhile; ?>
</ul>

I would appreciate any help


<div id="testcontent3" style="display:none;">

this is inside loop ... will produce duplicate ids on the page ...you need to have unique id's for divs

0

精彩评论

暂无评论...
验证码 换一张
取 消