1. <?php $stringtab= $row['id'];
  2. $stringtab .=$row['username'];
  3. $stringtab .="tab";
  4. ?>
  5. <?php $stringtabby= $row['id'];
  6. $stringtabby .=$row['username'];
  7. $stringtabby .="tabby";
  8. ?>
  9.  
  10.  
  11. <div style=" width:480px; height: 250px; padding: 0px;">
  12.  
  13. <div id="<?php echo $stringtab;?>" class="tabcontent">
  14. Tab content 1 here<br />Tab content 1 here<br />
  15. <p><b><a href="javascript: mypets.expandit('myfavorite')">Click here to select tab with id="myfavorite"</a></b></p>
  16. </div>
  17.  
  18. <div id="<?php echo $stringtab;?>" class="tabcontent">
  19. Tab content 2 here<br />Tab content 2 here<br />
  20. </div>
  21.  
  22. <div id="<?php echo $stringtab;?>" class="tabcontent">
  23. Tab content 3 here<br />Tab content 3 here<br />
  24. </div>
  25.  
  26.  
  27. </div>
  28.  
  29. <div id="<?php echo $stringtabby;?>" class="indentmenu">
  30. <ul>
  31. <li><a href="#" rel="<?php echo $stringtab;?>" class="selected">Comments</a></li>
  32. <li><a href="#" rel="<?php echo $stringtab;?>">Read Me</a></li>
  33. </ul>
  34.  
  35. <br style="clear: left" />
  36. </div>
  37. <script type="text/javascript">
  38.  
  39. var mypets=new ddtabcontent("<?php echo $stringtabby;?>")
  40. mypets.setpersist(true)
  41. mypets.setselectedClassTarget("link")
  42. mypets.init(2000)
  43.  
  44. </script>
  45.  
  46.  
  47. </div>