Advertisement
Guest User

Untitled

a guest
Mar 18th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Stack Overflow</title>
  5. <style>
  6. .js { position: relative; margin-bottom: 700px; }
  7. .color { position: absolute; top: 0; left: 0; width: 150px; height: 150px; }
  8. .blue { background: blue; z-index: 99; }
  9. .yellow { background: yellow; z-index: 90; }
  10. </style>
  11. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
  12. <script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
  13.  
  14. <script type="text/javascript" charset="utf-8">
  15. $(document).ready(function() {
  16. swfobject.embedSWF("/flash/slider.swf", "myContent", "520", "348", "9.0.0","expressInstall.swf", null, { wmode: 'opaque' });
  17. });
  18. </script>
  19. </head>
  20. <body>
  21. <div id="myContent"></div>
  22.  
  23. <div class="spacer">
  24.  
  25. </div>
  26.  
  27. <div class="js">
  28. <div class="color blue"></div>
  29. <div class="color yellow"></div>
  30. </div>
  31.  
  32. <div class="js">
  33. <div class="color blue"></div>
  34. <div class="color yellow"></div>
  35. </div>
  36.  
  37.  
  38. <script>
  39. $('.blue').mouseover(function() {
  40. $(this).fadeOut(500);
  41. });
  42. $('.blue').mouseout(function() {
  43. $(this).fadeIn(500);
  44. });
  45. </script>
  46. </body>
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement