Advertisement
Guest User

Untitled

a guest
Apr 13th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>Nazwa twojej strony</title>
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css" />
  7. <script type="text/javascript" src="https://code.jquery.com/jquery-1.10.2.js"></script>
  8. <style>
  9. body
  10. {
  11. color: #ffffff;
  12. background: url('bground.jpg');
  13. background-size: 100%;
  14. }
  15.  
  16. ul
  17. {
  18. list-style: none;
  19. background-color: grey;
  20. width: 150px;
  21. text-align: center;
  22. margin: 0;
  23. padding: 0;
  24. }
  25.  
  26. ul:hover
  27. {
  28. background-color: black;
  29. }
  30.  
  31. li a
  32. {
  33. text-decoration:none;
  34. color: white;
  35. }
  36.  
  37.  
  38.  
  39. ul li li
  40. {
  41. background-color: red;
  42.  
  43. }
  44.  
  45. ul li li:hover
  46. {
  47. background-color: brown;
  48. }
  49. ul li ul{
  50. display:none;
  51. }
  52.  
  53. ul li:hover ul{
  54. display:block;
  55.  
  56. }
  57.  
  58.  
  59.  
  60. ul li ul li a
  61. {
  62. color: black;
  63. }
  64.  
  65. ul li li a:hover
  66. {
  67. color: red;
  68. }
  69. </style>
  70. </head>
  71. <body>
  72.  
  73. <ul>
  74. <li><a href="">Services<a/>
  75. <ul>
  76. <li><a href="">Home<a/>
  77. <li><a href="">Office<a/>
  78. <li><a href="">Large areas<a/>
  79. <li><a href="">Garden<a/>
  80. </ul>
  81. </li>
  82. </ul>
  83. <script>
  84. $(document).ready(function(){
  85. $('ul li').hover(function(){
  86. $('ul li ul').addClass('animated bounceInLeft');
  87.  
  88. });
  89.  
  90. });
  91. </script>
  92. </body>
  93. </html>
  94. Tak to powinno wyglądać. U mnie działa u ciebie też to powinno.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement