Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <Head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>LEEROOOOOOOOOOOOOOOOOOOOOOOOY</title>
  6. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  7.  
  8.  
  9. <script type="text/javascript">
  10. $(document).ready(function(){
  11. blink();
  12. })
  13.  
  14. function blink(){
  15. $(".container")
  16. .animate({backgroundColor: '#FF0000'}, 150);
  17. .animate({backgroundColor: '#FF9500'}, 150);
  18. .animate({backgroundColor: '#FFD200'}, 150);
  19. .animate({backgroundColor: '#74E600'}, 150);
  20. .animate({backgroundColor: '#1049A9'}, 150);
  21. .animate({backgroundColor: '#4212AF'}, 150);
  22. .animate({backgroundColor: '#A600A6'}, 150, function(){blink()});
  23.  
  24. }
  25. function showWhite(){
  26. var audio = $(".leeroy")[0];
  27. $(".white").fadeIn("fast");
  28. audio.pause();
  29. }
  30. function hideWhite(){
  31. var audio = $(".leeroy")[0];
  32. audio.addEventListener('ended', function(){currentTime = 0};), false);
  33. $(".white").fadeOut("fast");
  34. audio.play();
  35. }
  36.  
  37. $(".leeroy").hover(
  38. function () {
  39. $(this).addclass("not")
  40. },
  41. function (){
  42. $(this).removeClass("not");
  43. });
  44.  
  45. </script>
  46. <style type="text/css">
  47. .normal{
  48. background-image: url(674.png);
  49. width: 286px;
  50. height: 395px;
  51. }
  52. .not{
  53. background-image: url(674.gif);
  54. width: 286px;
  55. height: 395px;
  56. }
  57. .container{
  58. position: fixed;
  59. width: 100%;
  60. height: 100%;
  61. top: 0px;
  62. left: 0px;
  63. background-color: white;
  64. display: block;
  65. z-index: 100;
  66. }
  67.  
  68. .white{
  69. position: fixed;
  70. width: 100%;
  71. height: 100%;
  72. top: 0px;
  73. left: 0px;
  74. background-color: white;
  75. display: block;
  76. z-index: 101;
  77. }
  78.  
  79.  
  80. </style>
  81. </Head>
  82. <body>
  83. <audio class="leeroy">
  84. <source src="./leeroy.mp3">
  85. </audio>
  86. <div class="container" style=""></div>
  87. <div class="white" style="display: block;"></div>
  88. <div class="normal" onmouseover="hideWhite(); addClass(not)" onmouseout="showWhite(); removeClass(not);"></a>
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement