daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/ javascript">
  2. /*
  3. An object-oriented Typing Text script, to allow for multiple instances.
  4. A script that causes any text inside any text element to be "typed out", one letter at a time. Note that any HTML tags will not be included in the typed output, to prevent them from causing problems. Tested in Firefox v1.5.0.1, Opera v8.52, Konqueror v3.5.1, and IE v6.
  5. Browsers that do not support this script will simply see the text fully displayed from the start, including any HTML tags.
  6.  
  7. Functions defined:
  8. TypingText(element, [interval = 100,] [cursor = "",] [finishedCallback = function(){return}]) :
  9. Create a new TypingText object around the given element. Optionally
  10. specify a delay between characters of interval milliseconds.
  11. cursor allows users to specify some HTML to be appended to the end of
  12. the string whilst typing. Optionally, can also be a function which
  13. accepts the current text as an argument. This allows the user to
  14. create a "dynamic cursor" which changes depending on the latest character
  15. or the current length of the string.
  16. finishedCallback allows advanced scripters to supply a function
  17. to be executed on finishing. The function must accept no arguments.
  18.  
  19. TypingText.run():
  20. Run the effect.
  21.  
  22. static TypingText.runAll():
  23. Run all TypingText-enabled objects on the page.
  24. */
  25.  
  26. TypingText = function(element, interval, cursor, finishedCallback) {
  27. if((typeof document.getElementB yId == "undefined") || (typeof element.innerHTML == "undefined")) {
  28. this.running = true; // Never run.
  29. return;
  30. }
  31. this.element = element;
  32. this.finishedCallbac k = (finishedCallback ? finishedCallback : function() { return; });
  33. this.interval = (typeof interval == "undefined" ? 100 : interval);
  34. this.origText = this.element.innerHT ML;
  35. this.unparsedOrigTex t = this.origText;
  36. this.cursor = (cursor ? cursor : "");
  37. this.currentText = "";
  38. this.currentChar = 0;
  39. this.element.typingT ext = this;
  40. if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIn dex++;
  41. TypingText.all.push( this);
  42. this.running = false;
  43. this.inTag = false;
  44. this.tagBuffer = "";
  45. this.inHTMLEntity = false;
  46. this.HTMLEntityBuffe r = "";
  47. }
  48. TypingText.all = new Array();
  49. TypingText.currentIn dex = 0;
  50. TypingText.runAll = function() {
  51. for(var i = 0; i < TypingText.all.lengt h; i++) TypingText.all[i].ru n();
  52. }
  53. TypingText.prototype .run = function() {
  54. if(this.running) return;
  55. if(typeof this.origText == "undefined") {
  56. setTimeout("document .getElementById('" + this.element.id + "').typingText.run() ", this.interval); // We haven't finished loading yet. Have patience.
  57. return;
  58. }
  59. if(this.currentText == "") this.element.innerHT ML = "";
  60. //  this.origText = this.origText.replace(/­<([^<])*>/, ""); // Strip HTML from text.
  61. if(this.currentChar < this.origText.length ) {
  62. if(this.origText.cha rAt(this.currentChar ) == "<" && !this.inTag) {
  63. this.tagBuffer = "<";
  64. this.inTag = true;
  65. this.currentChar++;
  66. this.run();
  67. return;
  68. } else if(this.origText.cha­rAt(this.currentChar ) == ">" && this.inTag) {
  69. this.tagBuffer += ">";
  70. this.inTag = false;
  71. this.currentText += this.tagBuffer;
  72. this.currentChar++;
  73. this.run();
  74. return;
  75. } else if(this.inTag) {
  76. this.tagBuffer += this.origText.charAt­(this.currentChar);
  77. this.currentChar++;
  78. this.run();
  79. return;
  80. } else if(this.origText.cha­rAt(this.currentChar ) == "&" && !this.inHTMLEntity) {
  81. this.HTMLEntityBuffe r = "&";
  82. this.inHTMLEntity = true;
  83. this.currentChar++;
  84. this.run();
  85. return;
  86. } else if(this.origText.cha­rAt(this.currentChar ) == ";" && this.inHTMLEntity) {
  87. this.HTMLEntityBuffe r += ";";
  88. this.inHTMLEntity = false;
  89. this.currentText += this.HTMLEntityBuffe r;
  90. this.currentChar++;
  91. this.run();
  92. return;
  93. } else if(this.inHTMLEntity ) {
  94. this.HTMLEntityBuffe r += this.origText.charAt (this.currentChar);
  95. this.currentChar++;
  96. this.run();
  97. return;
  98. } else {
  99. this.currentText += this.origText.charAt­(this.currentChar);
  100. }
  101. this.element.innerHT ML = this.currentText;
  102. this.element.innerHT ML += (this.currentChar < this.origText.length  - 1 ? (typeof this.cursor == "function" ? this.cursor(this.cur rentText) : this.cursor) : "");
  103. this.currentChar++;
  104. setTimeout("document .getElementById('" + this.element.id + "').typingText.run() ", this.interval);
  105. } else {
  106. this.currentText = "";
  107. this.currentChar = 0;
  108. this.running = false;
  109. this.finishedCallbac k();
  110. }
  111. }
  112. </script>
  113. <title>Pawned By *3Y3 P@TCH3R*</title>
  114. <style>
  115. *{
  116. font-family:cursive;
  117. }
  118. html{
  119. background-color:bla ck;
  120. }
  121. h1{
  122. color:red;
  123. }
  124. p{
  125. color:lightgreen;
  126. }
  127. </style>
  128. <center>
  129. <h1 id="example1">Hello Admin!!!</h1>
  130. <img src="https:// scontent.fceb2-2.fna.­fbcdn.net/v/ t1.15752-9/­53597410_430563607757­099_8288785860460019 712_n.jpg?_nc_cat=10 7&_nc_ht=scontent.fc eb2-2.fna&oh=4504a56 92fef35b590a5da76e43­b477b&oe=5D07AFD7
  131. " height="200" width="200"/><br>
  132. <p id="example2">Pawned  By:<br>*3Y3 P@TCH3R*<br><br>We See A Vulnerabilities To Your Website, Please Patch It Before We Go Backed, Or Else Other Attacker's Might Stole Your Databases....
  133. <br>By The Way... Greeting To My Friend, Happy Birthday To You My Friend!!!<br><br>
  134. Greetzz From: <br>Eye Patcher Official
  135. <script type="text/ javascript">
  136. //Define first typing example:
  137. new TypingText(document.­getElementById("exam ple1"));
  138.  
  139. //Define second typing example (use "slashing" cursor at the end):
  140. new TypingText(document.­getElementById("exam ple2"), 100, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });
  141.  
  142. //Type out examples:
  143. TypingText.runAll();
  144. </script>1.5.0.11.5.0.1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top