industrialgaming

F U met je jS fiddle

Jan 22nd, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <script>
  2. /*
  3. Copyright (c) 2008-2014 Sevvlor.co.uk - All rights reserved
  4.  
  5. */
  6. $(function(){
  7. $('.dropdown').on('click', function(){
  8. if( $(this).children('ul').is(':visible') ) {
  9.  
  10. $(this).children('ul').slideUp('fast', function(){
  11. $(this).children('ul').hide();
  12. });
  13.  
  14. } else {
  15.  
  16. if ($('.dropdown ul').is(':visible')){
  17. $('.dropdown').children('ul').slideUp('fast', function(){
  18. $('.dropdown').children('ul').hide();
  19. });
  20. }
  21.  
  22. $(this).children('ul').slideDown('fast', function(){
  23. $(this).children('ul').show();
  24. });
  25.  
  26. }
  27. });
  28. });
  29. </script>
  30.  
  31. .dropdown li {
  32. float: none;
  33. color: white;
  34. font-weight: 100;
  35. }
  36.  
  37. .dropdown li > a {
  38. color: white;
  39. text-decoration: none;
  40. padding-bottom:4px;
  41. margin-bottom: 3px;
  42. border-bottom: #6e6e73 1px solid;
  43. padding-left: 35px;
  44. }
  45.  
  46. .dropdown ul {
  47. display: none;
  48. }
  49.  
  50. <li class="dropdown"><a href="javascript:void(0)"><i class="icon_ul"></i> BLABLA</span></a>
  51. <ul>
  52. <li><a href="{}">{JAJJA}</a></li>
  53. </ul>
  54. </li>
Advertisement
Add Comment
Please, Sign In to add comment