Advertisement
P0IS0NERzzID

Script Deface Galau Keren | Script Deface Html

May 10th, 2017
1,768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.28 KB | None | 0 0
  1. document.write(unescape('
  2. <script type='text/javascript'>
  3. //<![CDATA[
  4. msg = "UnaDotID";
  5. msg = "" + msg;pos = 0;
  6. function scrollMSG()
  7. {document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
  8. if (pos > msg.length) pos = 0
  9. window.setTimeout("scrollMSG()",150);}
  10. scrollMSG();
  11. //]]>
  12. </script>
  13.  
  14. <meta name="Author" content="Gerard Ferrandez at http://www.dhteumeuleu.com">
  15. <meta http-equiv="imagetoolbar" content="no">
  16. <style type="text/css">
  17. html {
  18. overflow: hidden;
  19. }
  20. body {
  21. background:#000000 no-repeat;background-size:95%;background-attachment:fixed;
  22. width: 100%;
  23. height: 100%;
  24. color: #000000;
  25. }
  26. #frm {
  27. position: absolute;
  28. height: 100%;
  29. width: 100%;
  30. left: 0%;
  31. top: 0%;
  32. font-size: 2em;
  33. font-weight: bold;
  34. font-family: Chiller;
  35. background: #transparent;
  36. overflow: hidden;
  37. padding: 0.5em;
  38. }
  39. #frm span {
  40. position: relative;
  41. text-align: center;
  42. z-index: 1;
  43. }
  44. #mtxform {
  45. position: relative;
  46. z-index: 10;
  47. }
  48. .hidden {
  49. visibility: hidden;
  50. }
  51. </style>
  52. <link rel="SHORTCUT ICON" href="http://www.hi5style.com/gr/heart.gif">
  53. <script type="text/javascript">
  54. /*
  55. =====
  56. script: morphing text
  57. author: Gerard Ferrandez - [Ge1doot]
  58. date: 20 September, 2008
  59. site: http://www.dhteumeuleu.com
  60. inspiration: http://www.pwang.com/blog/archives/2006/04/post_100.html
  61. quote: Scott Adams, 'The Dilbert Principle'
  62. ------------
  63. license: CC-BY-NC - please do not remove this notice !
  64. =====
  65. */
  66.  
  67. var mtx = function () {
  68. /* ==== private variables & methods ==== */
  69. var stop = false;
  70. var frm, lineDelay, charDelay;
  71. var colorText, colorMatch, colorGhost, elapsedTime;
  72. var lineIndex = 0;
  73. var lineChar = [];
  74. var animStack = [];
  75. var colorStack = [];
  76. /* ==== rgb color ==== */
  77. function colorRGB (c) {
  78. return 'rgb('
  79. +Math.round(Math.min(255, Math.max(0, c[0])))+','
  80. +Math.round(Math.min(255, Math.max(0, c[1])))+','
  81. +Math.round(Math.min(255, Math.max(0, c[2])))+')';
  82. }
  83. /* ==== Easing functions ==== */
  84. function Ease () {}
  85. Ease.prototype = {
  86. ease : function () {
  87. this.m += this.s;
  88. this.x0 += (this.d * this.m * .0025);
  89. if (this.m == 20) this.s = -1;
  90. return this.x0;
  91. },
  92. init : function (x0, x1) {
  93. this.m = 0;
  94. this.s = 1;
  95. this.d = x1 - x0;
  96. this.x0 = x0;
  97. }
  98. }
  99.  
  100. /* ==== Load Lines ==== */
  101. function loadLines () {
  102. // read text from HTML form
  103. text = document.forms.mtxform.text.value.split("\n");
  104. // loop through all lines
  105. for (var j = 0; j < text.length; j++) {
  106. var t = text[j];
  107. if (t) {
  108. var n = t.length;
  109. lineChar[j] = [];
  110. // first pass: create characters capture RELATIVE offset coordinates
  111. for (var i = 0; i < n; i++)
  112. lineChar[j][i] = new Character(t.charAt(i), j);
  113. // second pass: convert to absolute position
  114. for (var i = 0, o; o = lineChar[j][i]; i++) {
  115. if (o.c == "|") {
  116. // remove spaces
  117. lineChar[j].splice(i, 1);
  118. frm.removeChild(o.o);
  119. i--;
  120. } else {
  121. // convert to absolute position and render
  122. o.o.style.position = "absolute";
  123. o.o.style.color = colorRGB(colorText);
  124. o.moveHTML();
  125. // push first line in animation stack
  126. if (j == 0) pushAnim (o, charDelay * i);
  127. }
  128. }
  129. }
  130. }
  131. }
  132. /* ==== Character Constructor ==== */
  133. function Character (c, line) {
  134. if (c == " ") c = "|";
  135. this.c = c;
  136. // create HTML element and append the the container
  137. this.o = document.createElement("span");
  138. this.o.innerHTML = c;
  139. this.o.style.zIndex = 2;
  140. frm.appendChild(this.o);
  141. // capture relative offset positions !
  142. this.x0 = this.o.offsetLeft;
  143. this.y0 = -this.o.offsetHeight * 1.5;
  144. this.x1 = this.x0;
  145. this.x2 = this.x0;
  146. this.y1 = (line + 1) * this.o.offsetHeight;
  147. this.y2 = frm.offsetHeight;
  148. this.mx = new Ease();
  149. this.my = new Ease();
  150. this.c0 = [colorText[0], colorText[1], colorText[2]];
  151. }
  152. /* ==== Character functions ==== */
  153. Character.prototype = {
  154. // ---- character animation ----
  155. anim : function (i) {
  156. // temporization
  157. if (this.delay > 0) {
  158. if (elapsedTime)
  159. this.delay -= new Date().getTime() - elapsedTime;
  160. } else {
  161. // moving
  162. this.x0 = this.mx.ease();
  163. this.y0 = this.my.ease();
  164. this.moveHTML();
  165. if (!this.my.m && !this.mx.m) {
  166. // remove from stack
  167. animStack.splice(i, 1);
  168. // remove dead characters
  169. if (this.off) frm.removeChild(this.o);
  170. }
  171. }
  172. },
  173. // ----- color fading ------
  174. color : function (i) {
  175. this.c0[0] += this.cr[0];
  176. this.c0[1] += this.cr[1];
  177. this.c0[2] += this.cr[2];
  178. this.ci++;
  179. this.o.style.color = colorRGB(this.c0);
  180. if (this.ci >= this.cs)
  181. colorStack.splice(i, 1);
  182. },
  183. // ----- HTML positioning -----
  184. moveHTML : function () {
  185. this.o.style.left = Math.round(this.x0) + "px";
  186. this.o.style.top = Math.round(this.y0) + "px";
  187. },
  188. // ----- init color fading ------
  189. colorFade : function (c1, steps) {
  190. this.cs = steps;
  191. this.cr = [(c1[0] - this.c0[0]) / steps, (c1[1] - this.c0[1]) / steps, (c1[2] - this.c0[2]) / steps];
  192. if (this.cr[0] != 0 || this.cr[1] != 0 || this.cr[2] != 0){
  193. this.ci = 0;
  194. colorStack.push (this);
  195. }
  196. }
  197. }
  198. /* ==== push character in the animation stack ==== */
  199. function pushAnim (o, delay) {
  200. // init ease
  201. o.mx.init(o.x0, o.x1);
  202. o.my.init(o.y0, o.y1);
  203. o.delay = delay;
  204. // push stack
  205. animStack.push(o);
  206. }
  207. /* ==== next line ==== */
  208. function nextLine () {
  209. if (lineIndex < lineChar.length - 1) {
  210. // display shadow text
  211. for (var i = 0, o; o = lineChar[lineIndex][i]; i++) {
  212. var s = o.o.cloneNode(true);
  213. s.style.zIndex = 1;
  214. s.style.color = colorRGB(colorGhost);
  215. frm.appendChild(s);
  216. }
  217. // matching next line characters
  218. for (var i = 0, t; t = lineChar[lineIndex + 1][i]; i++) {
  219. for (var j = 0, o; o = lineChar[lineIndex][j]; j++) {
  220. if (o.c == t.c) {
  221. // colors
  222. t.colorFade(colorMatch, o.match ? 1 : 40);
  223. t.match = true;
  224. // swap characters
  225. t.x0 = o.x0;
  226. t.y0 = o.y0;
  227. t.moveHTML();
  228. // remove redundant character
  229. frm.removeChild(o.o);
  230. lineChar[lineIndex].splice(j, 1);
  231. break;
  232. }
  233. }
  234. }
  235. // take off redundant characters
  236. for (var i = 0, o; o = lineChar[lineIndex][i]; i++) {
  237. // set target position (off frame)
  238. o.y1 = frm.offsetHeight;
  239. o.off = true;
  240. o.match = false;
  241. o.colorFade (colorText, 40);
  242. // push in animation stack
  243. pushAnim (o, (lineDelay * .8) + charDelay * i);
  244. }
  245. }
  246. // push next line in animation stack
  247. lineIndex++;
  248. if (lineIndex < lineChar.length) {
  249. for (var i = 0, o; o = lineChar[lineIndex][i]; i++)
  250. pushAnim (o, lineDelay + charDelay * i);
  251. }
  252. }
  253.  
  254. /* ==== main animation loop ==== */
  255. function main() {
  256. // characters
  257. var n = animStack.length;
  258. if (n) {
  259. var i = n;
  260. while (i--)
  261. animStack[i].anim(i);
  262. } else nextLine ();
  263. // colors
  264. var i = colorStack.length;
  265. while (i--)
  266. colorStack[i].color(i);
  267. // get elapsed time and loop
  268. elapsedTime = new Date().getTime();
  269. setTimeout(main, 16);
  270. }
  271.  
  272. /* //////////// ==== public methods ==== //////////// */
  273. return {
  274. /* ==== initialize script ==== */
  275. init : function (cont, t1, t2, c1, c2, c3) {
  276. // container
  277. frm = document.getElementById(cont);
  278. lineDelay = t1;
  279. charDelay = t2;
  280. colorText = c1;
  281. colorMatch = c2;
  282. colorGhost = c3;
  283. loadLines();
  284. main();
  285. },
  286. changeText : function () {
  287. document.getElementById("show").className = "";
  288. document.getElementById("inputext").className = "hidden";
  289. lineChar = [];
  290. animStack = [];
  291. colorStack = [];
  292. frm.innerHTML = "";
  293. lineIndex = 0;
  294. elapsedTime = 0;
  295. loadLines();
  296. frm.focus();
  297. },
  298. show : function () {
  299. document.getElementById("show").className = "hidden";
  300. document.getElementById("inputext").className = "";
  301. document.getElementById("text").focus();
  302. }
  303. }
  304. }();
  305.  
  306.  
  307. /* ==== init text ==== */
  308. onload = function () {
  309.  
  310. // mtx.init( el, linesDelay, charsDelay, cText, cMatch, cGhost);
  311. mtx.init("frm", 1500, 150, [255,255,255], [255,64,0], [44,44,44]);
  312. }
  313.  
  314. </script>
  315. </head>
  316. <body>
  317.  
  318.  
  319. <div id="frm"></div>
  320. <form id="mtxform" name="mtxform">
  321. <span id="inputext" class="hidden">
  322. <textarea rows="5" cols="20" id="text" name="text">
  323. Sepenggal Pengalaman yang aku jalani denganmu.
  324. Berharap menjadi yang terbaik dan terindah di hidupku.
  325. Berharap takkan pernah berakhir..
  326. Tercipta satu kisah indah untuk selamanya...
  327. I miss you....
  328. FY - UnaDotID
  329. <a href="https://hacanimedream.blogspot.com" target="_blank">Hacanimedream</a>
  330.  
  331. </textarea>
  332.  
  333.  
  334. <iframe width="0%" height="0" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/120206077&amp;color=ff6600&amp;auto_play=true&amp;show_artwork=true"></iframe>
  335. //--><script type="text/javascript">
  336.  
  337. var _gaq = _gaq || [];
  338. _gaq.push(['_setAccount', 'UA-5263515-4']);
  339. _gaq.push(['_setDomainName', '.3eeweb.com']);
  340. _gaq.push(['_trackPageview']);
  341.  
  342. (function() {
  343. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  344. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  345. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  346. })();
  347.  
  348. </script><script type="text/javascript">
  349.  
  350. var _gaq = _gaq || [];
  351. _gaq.push(['_setAccount', 'UA-5263515-4']);
  352. _gaq.push(['_setDomainName', '.3eeweb.com']);
  353. _gaq.push(['_trackPageview']);
  354.  
  355. (function() {
  356. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  357. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  358. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  359. })();
  360.  
  361. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement