Advertisement
BrU32

JQ Rotate Images Animation SRC

Nov 11th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
  2. <center>
  3. <script>
  4. var scr=0;
  5. $('document').ready(function(){
  6. var i=20;
  7. for(var i1=0;i!=i1;i--){
  8. $('#img').css("font-size", "100px");
  9. $('#img').css("color", "red").slideUp(Math.floor(Math.random()*200)).s('fast');
  10. $('#img').css("width","100px").slideUp(Math.floor(Math.random()*300));
  11. $('#img1').css("font-size", "100px");
  12. $('#img1').css("color", "red").slideUp('fast').slideDown('fast');
  13. $('#img1').css("width","100px").slideUp(Math.floor(Math.random()*300));
  14. $('#img2').css("font-size", "100px");
  15. $('#img2').css("color", "red").slideUp('fast').slideDown('slow');
  16. $('#img2').css("width","100px").slideUp(Math.floor(Math.random()*300));
  17. }
  18. });
  19. </script>
  20. <img src="http://www.w3schools.com/colors/img_colormap.gif" id="img" onclick="scr++;
  21. if(scr==25){
  22. alert('You Win!!');
  23. window.location=window.location.host
  24. }
  25. this.visible=false;">
  26. <img src="http://www.w3schools.com/colors/img_colormap.gif" id="img1" onclick="scr++;
  27. if(scr==25){
  28. alert('You Win!!');
  29. window.location=window.location.host
  30. }
  31. this.visible=false;">
  32. <img src="http://www.w3schools.com/colors/img_colormap.gif" id="img2" onclick="scr++;
  33. if(scr==25){
  34. alert('You Win!!');
  35. window.location="";
  36. }
  37. this.visible=false;">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement