aekaek

daface

Jan 15th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.98 KB | None | 0 0
  1.  
  2.  
  3.  
  4. <style type='text/css'>body,td,th{font-family:;font-size:18px;color:lime;}body{background-color:black;overflow:hidden;overflow-y:scroll;}#xbox{width:100%;position:fixed;bottom:0;left:0;height:70px;padding:5px;text-align:center;}#logo{top:0;float:center;z-index:1;opacity:0.9;}a:link{color:#FFFFFF;text-decoration:none;}a:active{color:#FFFFFF;text-decoration:none;}a:visited{color:#FFFFFF;text-decoration:none;}a:hover{color:#167c11;text-decoration:none;}</style>
  5. <script type="text/javascript">
  6. var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  7. if (is_chrome || /Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for MSIE x.x;
  8. }
  9. else {
  10. alert('Come back with Chrome or Firefox n00b');
  11. window.location = 'http://google.com';
  12. }
  13. </script>
  14. <script type="text/javascript">
  15. function $i(id) { return document.getElementById(id); }
  16. function $r(parent,child) { (document.getElementById(parent)).removeChild(document.getElementById(child)); }
  17. function $t(name) { return document.getElementsByTagName(name); }
  18. function $c(code) { return String.fromCharCode(code); }
  19. function $h(value) { return ('0'+Math.max(0,Math.min(255,Math.round(value))).toString(16)).slice(-2); }
  20. function _i(id,value) { $t('div')[id].innerHTML+=value; }
  21. function _h(value) { return !hires?value:Math.round(value/2); }
  22.  
  23. function get_screen_size()
  24. {
  25. var w=document.documentElement.clientWidth;
  26. var h=document.documentElement.clientHeight;
  27. return Array(w,h);
  28. }
  29.  
  30. var url=document.location.href;
  31.  
  32. var flag=true;
  33. var test=true;
  34. var n=parseInt((url.indexOf('n=')!=-1)?url.substring(url.indexOf('n=')+2,((url.substring(url.indexOf('n=')+2,url.length)).indexOf('&')!=-1)?url.indexOf('n=')+2+(url.substring(url.indexOf('n=')+2,url.length)).indexOf('&'):url.length):512);
  35. var w=0;
  36. var h=0;
  37. var x=0;
  38. var y=0;
  39. var z=0;
  40. var star_color_ratio=0;
  41. var star_x_save,star_y_save;
  42. var star_ratio=256;
  43. var star_speed=5;
  44. var star_speed_save=0;
  45. var star=new Array(n);
  46. var color;
  47. var opacity=0.1;
  48.  
  49. var cursor_x=0;
  50. var cursor_y=0;
  51. var mouse_x=0;
  52. var mouse_y=0;
  53.  
  54. var canvas_x=0;
  55. var canvas_y=0;
  56. var canvas_w=0;
  57. var canvas_h=0;
  58. var context;
  59.  
  60. var key;
  61. var ctrl;
  62.  
  63. var timeout;
  64. var fps=0;
  65.  
  66. function init()
  67. {
  68. var a=0;
  69. for(var i=0;i<n;i++)
  70. {
  71. star[i]=new Array(5);
  72. star[i][0]=Math.random()*w*2-x*2;
  73. star[i][1]=Math.random()*h*2-y*2;
  74. star[i][2]=Math.round(Math.random()*z);
  75. star[i][3]=0;
  76. star[i][4]=0;
  77. }
  78. var starfield=$i('starfield');
  79. starfield.style.position='absolute';
  80. starfield.width=w;
  81. starfield.height=h;
  82. context=starfield.getContext('2d');
  83. //context.lineCap='round';
  84. context.fillStyle='rgb(0,0,0)';
  85. context.strokeStyle='rgb(255,255,255)';
  86.  
  87. }
  88.  
  89. function anim()
  90. {
  91. mouse_x=cursor_x-x;
  92. mouse_y=cursor_y-y;
  93. context.fillRect(0,0,w,h);
  94. for(var i=0;i<n;i++)
  95. {
  96. test=true;
  97. star_x_save=star[i][3];
  98. star_y_save=star[i][4];
  99. star[i][0]+=mouse_x>>4; if(star[i][0]>x<<1) { star[i][0]-=w<<1; test=false; } if(star[i][0]<-x<<1) { star[i][0]+=w<<1; test=false; }
  100. star[i][1]+=mouse_y>>4; if(star[i][1]>y<<1) { star[i][1]-=h<<1; test=false; } if(star[i][1]<-y<<1) { star[i][1]+=h<<1; test=false; }
  101. star[i][2]-=star_speed; if(star[i][2]>z) { star[i][2]-=z; test=false; } if(star[i][2]<0) { star[i][2]+=z; test=false; }
  102. star[i][3]=x+(star[i][0]/star[i][2])*star_ratio;
  103. star[i][4]=y+(star[i][1]/star[i][2])*star_ratio;
  104. if(star_x_save>0&&star_x_save<w&&star_y_save>0&&star_y_save<h&&test)
  105. {
  106. context.lineWidth=(1-star_color_ratio*star[i][2])*2;
  107. context.beginPath();
  108. context.moveTo(star_x_save,star_y_save);
  109. context.lineTo(star[i][3],star[i][4]);
  110. context.stroke();
  111. context.closePath();
  112. }
  113. }
  114. timeout=setTimeout('anim()',fps);
  115. }
  116.  
  117. function move(evt)
  118. {
  119. evt=evt||event;
  120. cursor_x=evt.pageX-canvas_x;
  121. cursor_y=evt.pageY-canvas_y;
  122. }
  123.  
  124. function key_manager(evt)
  125. {
  126. evt=evt||event;
  127. key=evt.which||evt.keyCode;
  128. //ctrl=evt.ctrlKey;
  129. switch(key)
  130. {
  131. case 27:
  132. flag=flag?false:true;
  133. if(flag)
  134. {
  135. timeout=setTimeout('anim()',fps);
  136. }
  137. else
  138. {
  139. clearTimeout(timeout);
  140. }
  141. break;
  142. case 32:
  143. star_speed_save=(star_speed!=0)?star_speed:star_speed_save;
  144. star_speed=(star_speed!=0)?0:star_speed_save;
  145. break;
  146. case 13:
  147. context.fillStyle='rgba(0,0,0,'+opacity+')';
  148. break;
  149. }
  150. top.status='key='+((key<100)?'0':'')+((key<10)?'0':'')+key;
  151. }
  152.  
  153. function release()
  154. {
  155. switch(key)
  156. {
  157. case 13:
  158. context.fillStyle='rgb(0,0,0)';
  159. break;
  160. }
  161. }
  162.  
  163. function mouse_wheel(evt)
  164. {
  165. evt=evt||event;
  166. var delta=0;
  167. if(evt.wheelDelta)
  168. {
  169. delta=evt.wheelDelta/120;
  170. }
  171. else if(evt.detail)
  172. {
  173. delta=-evt.detail/3;
  174. }
  175. star_speed+=(delta>=0)?-0.2:0.2;
  176. if(evt.preventDefault) evt.preventDefault();
  177. }
  178.  
  179. function start()
  180. {
  181. resize();
  182. anim();
  183. }
  184.  
  185. function resize()
  186. {
  187. w=parseInt((url.indexOf('w=')!=-1)?url.substring(url.indexOf('w=')+2,((url.substring(url.indexOf('w=')+2,url.length)).indexOf('&')!=-1)?url.indexOf('w=')+2+(url.substring(url.indexOf('w=')+2,url.length)).indexOf('&'):url.length):get_screen_size()[0]);
  188. h=parseInt((url.indexOf('h=')!=-1)?url.substring(url.indexOf('h=')+2,((url.substring(url.indexOf('h=')+2,url.length)).indexOf('&')!=-1)?url.indexOf('h=')+2+(url.substring(url.indexOf('h=')+2,url.length)).indexOf('&'):url.length):get_screen_size()[1]);
  189. x=Math.round(w/2);
  190. y=Math.round(h/2);
  191. z=(w+h)/2;
  192. star_color_ratio=1/z;
  193. cursor_x=x;
  194. cursor_y=y;
  195. init();
  196. }
  197.  
  198. document.onmousemove=move;
  199. document.onkeypress=key_manager;
  200. document.onkeyup=release;
  201. document.onmousewheel=mouse_wheel; if(window.addEventListener) window.addEventListener('DOMMouseScroll',mouse_wheel,false);
  202.  
  203. </script>
  204.  
  205.  
  206. <title>H4CKED by MNH</title>
  207. <link rel="shortcut icon" href="http://dl.dropbox.com/u/48005575/hat_favicon.ico">
  208. <canvas id="starfield" style="background-color:#000000"></canvas>
  209. <div id="logo">
  210. <center>&nbsp;<p>&nbsp;</p>
  211. <p><font size="6" color="Red"><b>[</font><font size="6" color="#FFFFFF">!</font><font size="6" color="Red">]
  212. Struck by </font>
  213. </b></p>
  214. <p><font face="Georgia" color="#FFFFFF">
  215. <span style="font-size: 120pt; font-weight: 700">Dr.T3RRor No0b$ </span></font><br/>
  216. <font size="5" color="lime">&nbsp;</font><br/>
  217.  
  218. <font size="2" color="red">________________________________________________________________________________________________________</font><br>
  219. <br><font size="4" color="#FFFF00"><b>
  220.  
  221. N@ob 5t4r | N00b 3Rr0R D@Nc3r | Dr.T3RR0r Noob$ | Noob Att@ck3r | H Noob | N00B H4x0R | K1DD13 Noob | No0b L3@rn3r | n0od 3ug
  222.  
  223. </b></font><font size="5" color="white"><b><br></b>
  224. <font size="2" color="red">________________________________________________________________________________________________________</font><br><br></font>
  225. <font face="Impact">
  226. <b><font size="7" color="white">MYANMAR</font>
  227. <font size="7" color="#00B000">N00B</font></b></font>
  228. <b><font size="7" color="white" face="Impact">H4CKERS</font><br>
  229. </p></center>
  230. </div>
  231. <body onLoad="animate();start()" onresize="resize()" onorientationchange="resize()" onmousedown="context.fillStyle='rgba(0,0,0,'+opacity+')'" onmouseup="context.fillStyle='rgb(0,0,0)'">
  232.  
  233. <script language=JavaScript type=text/javascript><!--// Method-5 animation script (compressed)
  234.  
  235. /***** initialize global film variables ******/
  236. var frames = 31; // <---- total number of pictures in film
  237. var delay = 90; // <---- delay after each frame
  238. var color = "#66CCFF"; // <---- Color of cat
  239. var changecol = false; // <---- Randomly change color of cat? If true the cat will change colors if false the color of the cat will be the value of the color variable.
  240. var move_cat = true; // <---- Move cat? If true the cat will move side to side. If false the cat will stay in one place.
  241. var cat_fontsize = 10; // <---- In pixels
  242.  
  243. /***** initialize anim screen position (in pixels) *****/
  244.  
  245. var topp = 50; // <---- window position bottom
  246. var left = (move_cat)?-20:-10; // <---- window position left
  247. var width = 300; // <---- window width
  248. var height = 187; // <---- window height
  249.  
  250.  
  251. /***** initialize anim control variables *****/
  252.  
  253. var posi = 0; // <---- actual picture position (frame counter)
  254. var prev = 1; // <---- previous picture number
  255. var run = true; // <---- boolean : true (?????) or !true (?????)
  256.  
  257.  
  258. /***** initialize style sheets ****/
  259.  
  260. document.write("<" + "style type='text/css'><" + "!-- ");
  261. for (i = 0; i <= frames; i++) {
  262. if (move_cat) {
  263. left = left + 2;
  264. }
  265. document.write("#cat" + i + " {position:absolute; color:" + color + "; font-size:" + cat_fontsize + "px; left:" + left + "%; top:" + topp + "px; width:" + width + "px; height:" + height + "px; z-index:" + i + "; visibility:hidden}");
  266. }
  267. document.write("--" + "><" + "/style>");
  268.  
  269. /******* animation module ******/
  270. function change_color() {
  271. var colors = new Array("#6C2DC7", "#00FFFF", "#00FF00", "#FFFF00", "#FF0000", "#FF00FF", "#1589FF", "#8D38C9", "#E3319D", "#6C2DC7", "#7E354D", "#736AFF", "#306754", "#E45E9D", "#000099", "#33CC00", "#25A0C5");
  272. var randomnum = Math.floor(Math.random() * 17)
  273. var random_color = colors[randomnum];
  274. for(i=0;i<=frames;i++) {
  275. if(i==0) {
  276.  
  277. }
  278. else {
  279. document.getElementById('cat' + i).style.color = random_color;
  280. }
  281. }
  282. }
  283.  
  284. function animate() {
  285. posi = posi + 1;
  286. if (posi > frames) {
  287. if (run) {
  288. if (changecol && move_cat) {
  289. setTimeout("animate2(posi-1, prev); change_color();", delay);
  290. } else if (changecol && !move_cat) {
  291. posi = 1;
  292. setTimeout("animate(); change_color();", delay);
  293. } else if (!changecol && move_cat) {
  294. setTimeout("animate2(posi-1, prev);", delay);
  295. } else if (!changecol && !move_cat) {
  296. posi = 1;
  297. setTimeout("animate();", delay);
  298. }
  299. }
  300. } else {
  301. document.getElementById("cat"+ prev).style.visibility = 'hidden';
  302. document.getElementById("cat"+ posi).style.visibility = 'visible';
  303. prev = posi;
  304. if (run) setTimeout("animate()", delay);
  305. }
  306. }
  307.  
  308. function animate2(posi2, prev2) {
  309. posi = posi2 - 1;
  310. if (posi < 1) {
  311. if (run) {
  312. if (changecol) {
  313. setTimeout("animate(); change_color();", delay);
  314. } else {
  315. setTimeout("animate();", delay);
  316. }
  317. }
  318. } else {
  319. document.getElementById("cat"+ prev).style.visibility = 'hidden';
  320. document.getElementById("cat"+ posi).style.visibility = 'visible';
  321. prev = posi;
  322. if (run) setTimeout("animate2(posi, prev-1)", delay);
  323. }
  324. }
  325. //--></SCRIPT>
  326.  
  327. <DIV id=cat1>
  328. <PRE>
  329.  
  330.  
  331. </PRE>
  332. </DIV>
  333. <embed
  334. <object width="0" height="0">param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param></object>
Advertisement
Add Comment
Please, Sign In to add comment