Need to fix some minor detailproblems with my treemenu!

Need to fix some minor detailproblems with my treemenu!

Those details will be talked and explained more below but first I will paste all codes that might be neccessary to use for configuration and searching for eventual changes to be made (I will paste CSS code, jquery code for treemenu, HTML code for treemenu)...

HTML Code for treemenu:

  1. <html>
  2. <head><title></title>
  3. <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
  4. <link rel="stylesheet" href="jquery.treeview.css"></script>
  5. <script type="text/javascript" src="jquery.treeview.min.js"></script>
  6. <script src="lib/jquery.cookie.js" type="text/javascript"></script>

  7. <script src="jquery.treeview.js" type="text/javascript"></script>
  8. <script type="text/javascript" src="menu.js"></script>

  9. </head>
  10. <body bgcolor="#000000">

  11. <ul id="mymenu" class="filetree">

  12. <li><a id="head" href="#">Bild</a>
  13. <ul>
  14. <li><a id="sibling" href="#">Fotoalbum [Redigerade]</a></li>
  15. <li><a id="sibling" href="#">Fotoalbum [Naturliga]</a></li>
  16. <li><a id="sibling" href="#">Galleri</a></li>
  17. <li><a id="sibling" href="#">Design</a></li>
  18. <li><a id="sibling" href="#">Layouts</a></li>
  19. <li><a id="sibling" href="#">Logotypes</a></li>
  20. <li><a id="sibling" href="#">Portfolio</a></li>
  21. </ul>
  22. </li>

  23. <li><a id="head" href="#">Kunskap</a>
  24. <ul>
  25. <li><a id="sibling" href="#">Ordspråk</a></li>
  26. <li><a id="sibling" href="#">Privat inlärning [Video]</a></li>
  27. <li><a id="sibling" href="#">Privat inlärning [Text]</a></li>
  28. <li><a id="sibling" href="#">Hemsidor</a></li>
  29. <li><a id="sibling" href="#">Film</a></li>
  30. <li><a id="sibling" href="#">Musik</a></li>
  31. <li><a id="sibling" href="#">Program</a></li>
  32. <li><a id="sibling" href="#">Kodspråk</a></li>
  33. <li><a id="sibling" href="#">Frågesport</a></li>
  34. <li><a id="sibling" href="#">Hjärnspel</a></li>
  35. <li><a id="sibling" href="#">Uppfinnare</a></li>
  36. <li><a id="sibling" href="#">Ordlista [Special]</a></li>
  37. <li><a id="sibling" href="#">Statistik</a></li>
  38. <li><a id="sibling" href="#">Historia @ Komma ihåg</a></li>
  39. </ul>
  40. </li>

  41. <li><a id="head" href="#">Anställning & Tjänster</a>
  42. <ul>
  43. <li><a id="sibling" href="#">Webbdesign</a></li>
  44. <li><a id="sibling" href="#">Teknisk support</a></li>
  45. <li><a id="sibling" href="#">Rådgivning</a></li>
  46. <li><a id="sibling" href="#">Undervisning</a></li>
  47. <li><a id="sibling" href="#">Ljud</a></li>
  48. <li><a id="sibling" href="#">Bild</a></li>
  49. </ul>
  50. </li>

  51. <li><a id="head" href="#">Cyber Fox</a>
  52. <ul>
  53. <li><a id="sibling" href="#">Dokumentation</a></li>
  54. <li><a id="sibling" href="#">Information</a></li>
  55. <li><a id="sibling" href="#">Sammarbete</a></li>
  56. </ul>
  57. </li>

  58. <li><a id="head" href="#">Blogg</a></li>
  59. <li><a id="head" href="#">Forum</a></li>
  60. <li><a id="head" href="#">Kontakt</a></li></ul>

  61. </body>
  62. </html>

CSS Code for the design of treemenu:

  1. .treeview, .treeview ul { 
  2. padding: 0;
  3. margin: 0;
  4. list-style: none;
  5. }

  6. .treeview ul {
  7. background-color: #000000;
  8. margin-top: 4px;
  9. }


  10. .treeview li { 
  11. margin: 0;
  12. padding: 3px 0pt 1px 12px;
  13. }

  14. .treeview a.selected {
  15. background-color: #000000;
  16. }

  17. #treecontrol { margin: 1em 0; display: none; }

  18. ul#mymenu { background-color: #000000; }
  19. ul#mymenu a#head:link { color: #dd8800; font-size: 14px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  20. ul#mymenu a#head:focus { color: #dd8800; font-size: 14px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  21. ul#mymenu a#head:hover { color: #959595; font-size: 14px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  22. ul#mymenu a#head:active { color: #959595; font-size: 14px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }


  23. ul#mymenu a#sibling:link { color: #dd8800; font-size: 12px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  24. ul#mymenu a#sibling:focus { color: #dd8800; font-size: 12px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  25. ul#mymenu a#sibling:hover { color: #959595; font-size: 12px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }
  26. ul#mymenu a#sibling:active { color: #959595; font-size: 12px; font-style: normal; font-weight: bold; font-family: Arial, Verdana, Sans serif; letter-spacing: 1px; }


  27. * {  text-decoration: none; outline: none;  }

jQuery Code for treemenu:

  1. $(document).ready(function() {

  2. $("#mymenu").treeview({
  3. collapsed: true,
  4. animated: "fast",
  5. control: "#treecontrol",
  6. unique: true,
  7. persist: "location",

  8. });

  9. $('ul#mymenu > li > a').toggle(function(e) {
  10.       $(this).siblings('ul').slideDown(); //or slideDown/fadeIn
  11.       e.preventDefault();
  12. }, function(e) {
  13.       $(this).siblings('ul').slideUp();   //or slideUp/fadeOut
  14.       e.preventDefault();
  15. });

  16. });


I was wondering how to get already shown siblings to hide once you click another menu alternative... I cant have the whole menu totally exposed at the same time cuz I dont really got the room for it :P

Also, I tried to add it to my website with the proper links and this "Location feature" I had chosen which should hold the selected menu alternative highlighted and showing the visitor where he is located at that particular moment... This feature doesnt work at all (The color I want to highlight the visited menualternative with is the hover color...) :-/

Thanks in advance for oncoming assistance and support I appreciate it from the bottom of my heart really :)

Best Regards,
Zinoxxx