Advertisement
Guest User

Untitled

a guest
May 17th, 2012
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4. <script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
  5. type = "text/javascript">
  6.  
  7. </script>
  8.  
  9. <script type = "text/javascript">
  10. $(document).ready(function(){
  11. $(".menu a").hover(function() {
  12. $(this).next("em").animate({opacity: "show", bottom: "-155"}, "fast");
  13. }, function() {
  14. $(this).next("em").animate({opacity: "hide", bottom: "-165"}, "fast");
  15. });
  16. });
  17. </script>
  18.  
  19. <style type = "text/css">
  20. .menu { margin: 100px; list-style: none; }
  21. .menu li {
  22. padding: 0;
  23. margin: 0 1px;
  24. float: left;
  25. position: relative;
  26. text-align: center;
  27. }
  28. .menu a {
  29. padding: 10px;
  30. display: block;
  31. color: #222;
  32. width: 150px;
  33. text-decoration: none;
  34. background: #eaf2f5;
  35. -webkit-border-radius: 5px;
  36. border:1px solid #09C;
  37. }
  38. .menu li em {
  39. background: url("box_menu.png") no-repeat;
  40. width: 160px;
  41. height: 120px;
  42. position: absolute;
  43. bottom: -160px;
  44. left: -30px;
  45. text-align: left;
  46. padding: 20px;
  47. font:12px helvetica, arial, sans-serif;
  48. display: none;
  49. }
  50. </style>
  51.  
  52. </head>
  53. <body>
  54.  
  55. <ul class = "menu">
  56. <li>
  57. <a href = "">Test Check</a>
  58. <em><strong> Test script: </strong> Check this out! </em>
  59. </li>
  60. <li>
  61. <a href = ""> jQuery is cool </a>
  62. <em>Test script</em>
  63. </li>
  64.  
  65. </ul>
  66.  
  67. </body>
  68.  
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement