Witam mam menu i jak sobie wejdę np w list motywacyjny to chciałem mieć taka tabelkę jak tu tabela niestety nie udaje mi się to sad.gif bo nie wygląda to jak powinno i nie wiem co mam zrobić zęby mi to działało

pod kodem wrzucał wszystkie plik by odpalić i zobaczyć


kod pliku index.html
  1. <head>
  2. <title>Menu with jQuery</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4. <meta name="description" content="Little Boxes Menu or Navigation with jQuery - radnomly animate the menu items to show content, accodion like boxes menu" />
  5. <meta name="keywords" content="jquery, boxes, menu, navigation, animate"/>
  6. <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
  7. <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
  8. <script type="text/javascript" src="js/jquery-ui-1.8.7.custom.min.js"></script>
  9. <script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
  10. <script type="text/javascript" src="js/jquery.betterTooltip.js"></script>
  11. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  12. <script type="text/javascript" src="jquery.easing.1.3.js"></script>
  13. <script type="text/javascript">
  14. $(function() {
  15. /* object to save the initial positions of each box */
  16. var divinfo = {"initial": []};
  17. /* index of the selected / clicked box */
  18. var current = -1;
  19.  
  20. /* we save the index,top and left of each one of the boxes */
  21. $('#littleBoxes > div').each(function(){
  22. var $this = $(this);
  23. var initial = {
  24. 'index' : $this.index(),
  25. 'top' : $this.css('top'),
  26. 'left' : $this.css('left')
  27. };
  28. divinfo.initial.push(initial);
  29. });
  30.  
  31. /* clcik event for the anchors inside of the boxes */
  32. $('#littleBoxes a').bind('click',function(e){
  33. var $this = $(this);
  34. var $currentBox = $this.parent();
  35. /* set a z-index lower than all the other boxes,
  36. to see the other boxes animation on the top*/
  37. $currentBox.css('z-index','1');
  38.  
  39. /* if we are clicking on a expanded box : */
  40. if(current == $currentBox.index()){
  41. /* put it back (decrease width,height, and set the top and left like it was before).
  42. the previous positions are saved in the divinfo obj*/
  43. $currentBox.stop().animate({
  44. 'top' : divinfo.initial[$currentBox.index()].top,
  45. 'left' : divinfo.initial[$currentBox.index()].left,
  46. 'width' : '122px',
  47. 'height' : '122px'
  48. },800,'easeOutBack').find('.boxcontent').fadeOut();
  49.  
  50.  
  51. $('#littleBoxes > div').not($currentBox).each(function(){
  52. var $ele = $(this);
  53. var elemTop = divinfo.initial[$ele.index()].top;
  54. var elemLeft = divinfo.initial[$ele.index()].left;
  55. $ele.stop().show().animate({
  56. 'top' : elemTop,
  57. 'left' : elemLeft,
  58. 'opacity' : 1
  59. },800);
  60. });
  61. current = -1;
  62. }
  63. /* if we are clicking on a small box : */
  64. else{
  65. /* randomly animate all the other boxes.
  66. Math.floor(Math.random()*601) - 150 gives a random number between -150 and 450.
  67. This range is considering the initial lefts/tops of the elements. It's not the exact right
  68. range, since we would have to calculate the range based on each one of the boxes. Anyway, it
  69. fits our needs...
  70. */
  71. $('#littleBoxes > div').not($currentBox).each(function(){
  72. var $ele = $(this);
  73. $ele.stop().animate({
  74. 'top' : (Math.floor(Math.random()*601) - 150) +'px',
  75. 'left': (Math.floor(Math.random()*601) - 150) +'px',
  76. 'opacity':0
  77. },800,function(){
  78. $(this).hide();
  79. });
  80. });
  81.  
  82. /* expand the clicked one. Also, fadeIn the content (boxcontent)
  83. if you want it to fill the space of the littleBoxes container,
  84. then these are the right values */
  85. var newwidth = 379;
  86. var newheight = 379;
  87. $currentBox.stop().animate({
  88. 'top' : '0px',
  89. 'left' : '0px',
  90. 'width' : newwidth +'px',
  91. 'height': newheight+'px'
  92. },800,'easeOutBack',function(){
  93. current = $currentBox.index();
  94. $(this).find('.boxcontent').fadeIn();
  95. });
  96.  
  97.  
  98. }
  99. e.preventDefault();
  100. });
  101. $(document).ready(function(){
  102. $('.tTip').betterTooltip({speed: 150, delay: 300});
  103.  
  104.  
  105. // Tabs
  106. $('#tabs').tabs();
  107.  
  108. });
  109. });
  110. </script>
  111. </head>
  112. <body>
  113. <div id="menu">
  114. <div class="title">
  115. <h1></h1>
  116. </div>
  117. <div id="content">
  118. <div class="reference">
  119. <p></p>
  120. </div>
  121.  
  122.  
  123. <div id="littleBoxes" class="littleBoxes">
  124. <div class="boxlink bg1" style="top:0px;left:0px;">
  125.  
  126. <a href="">CV</a>
  127.  
  128. <div class="boxcontent">
  129. <p>
  130.  
  131. <div class="tTip" title="jak krok po kroku pisac curiculum vite">CV
  132. <!-- Tabs -->
  133. <h2 class="demoHeaders">Tabs</h2>
  134. <div id="tabs">
  135. <ul>
  136. <li><a href="#tabs-1">First</a></li>
  137. <li><a href="#tabs-2">Second</a></li>
  138. <li><a href="#tabs-3">Third</a></li>
  139. </ul>
  140. <div id="tabs-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
  141. <div id="tabs-2">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>
  142. <div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>
  143. </div>
  144.  
  145. </p>
  146. </div>
  147. </div>
  148. </div>
  149.  
  150.  
  151.  
  152.  
  153. <div class="boxlink bg2" style="top:0px;left:380px;">
  154. <a href="" >LIST MOTYWACYJNY</a>
  155. <div class="boxcontent">
  156. <p>
  157.  
  158.  
  159. </p>
  160. </div>
  161. </div>
  162.  
  163.  
  164.  
  165. <div style="top:190px;left:190px;">
  166. <a href="">PRACA</a>
  167.  
  168. <p>
  169. </p>
  170.  
  171. </div>
  172.  
  173. <div class="boxlink bg4" style="top:380px;left:380px;">
  174. <a href="">ROZMOWA KWALIFIKACYJNA</a>
  175. <div class="boxcontent">
  176. <p>
  177. </p>
  178. </div>
  179. </div>
  180.  
  181.  
  182. </div>
  183. </div>
  184.  
  185. </body>
  186. </html>



pliki