Advertisement
Guest User

Untitled

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