Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Stack Overflow</title>
- <style>
- .js { position: relative; margin-bottom: 700px; }
- .color { position: absolute; top: 0; left: 0; width: 150px; height: 150px; }
- .blue { background: blue; z-index: 99; }
- .yellow { background: yellow; z-index: 90; }
- </style>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
- <script type="text/javascript" charset="utf-8">
- $(document).ready(function() {
- swfobject.embedSWF("/flash/slider.swf", "myContent", "520", "348", "9.0.0","expressInstall.swf", null, { wmode: 'opaque' });
- });
- </script>
- </head>
- <body>
- <div id="myContent"></div>
- <div class="spacer">
- </div>
- <div class="js">
- <div class="color blue"></div>
- <div class="color yellow"></div>
- </div>
- <div class="js">
- <div class="color blue"></div>
- <div class="color yellow"></div>
- </div>
- <script>
- $('.blue').mouseover(function() {
- $(this).fadeOut(500);
- });
- $('.blue').mouseout(function() {
- $(this).fadeIn(500);
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement