Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/ javascript">
- /*
- An object-oriented Typing Text script, to allow for multiple instances.
- 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.
- Browsers that do not support this script will simply see the text fully displayed from the start, including any HTML tags.
- Functions defined:
- TypingText(element, [interval = 100,] [cursor = "",] [finishedCallback = function(){return}]) :
- Create a new TypingText object around the given element. Optionally
- specify a delay between characters of interval milliseconds.
- cursor allows users to specify some HTML to be appended to the end of
- the string whilst typing. Optionally, can also be a function which
- accepts the current text as an argument. This allows the user to
- create a "dynamic cursor" which changes depending on the latest character
- or the current length of the string.
- finishedCallback allows advanced scripters to supply a function
- to be executed on finishing. The function must accept no arguments.
- TypingText.run():
- Run the effect.
- static TypingText.runAll():
- Run all TypingText-enabled objects on the page.
- */
- TypingText = function(element, interval, cursor, finishedCallback) {
- if((typeof document.getElementB yId == "undefined") || (typeof element.innerHTML == "undefined")) {
- this.running = true; // Never run.
- return;
- }
- this.element = element;
- this.finishedCallbac k = (finishedCallback ? finishedCallback : function() { return; });
- this.interval = (typeof interval == "undefined" ? 100 : interval);
- this.origText = this.element.innerHT ML;
- this.unparsedOrigTex t = this.origText;
- this.cursor = (cursor ? cursor : "");
- this.currentText = "";
- this.currentChar = 0;
- this.element.typingT ext = this;
- if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIn dex++;
- TypingText.all.push( this);
- this.running = false;
- this.inTag = false;
- this.tagBuffer = "";
- this.inHTMLEntity = false;
- this.HTMLEntityBuffe r = "";
- }
- TypingText.all = new Array();
- TypingText.currentIn dex = 0;
- TypingText.runAll = function() {
- for(var i = 0; i < TypingText.all.lengt h; i++) TypingText.all[i].ru n();
- }
- TypingText.prototype .run = function() {
- if(this.running) return;
- if(typeof this.origText == "undefined") {
- setTimeout("document .getElementById('" + this.element.id + "').typingText.run() ", this.interval); // We haven't finished loading yet. Have patience.
- return;
- }
- if(this.currentText == "") this.element.innerHT ML = "";
- // this.origText = this.origText.replace(/<([^<])*>/, ""); // Strip HTML from text.
- if(this.currentChar < this.origText.length ) {
- if(this.origText.cha rAt(this.currentChar ) == "<" && !this.inTag) {
- this.tagBuffer = "<";
- this.inTag = true;
- this.currentChar++;
- this.run();
- return;
- } else if(this.origText.charAt(this.currentChar ) == ">" && this.inTag) {
- this.tagBuffer += ">";
- this.inTag = false;
- this.currentText += this.tagBuffer;
- this.currentChar++;
- this.run();
- return;
- } else if(this.inTag) {
- this.tagBuffer += this.origText.charAt(this.currentChar);
- this.currentChar++;
- this.run();
- return;
- } else if(this.origText.charAt(this.currentChar ) == "&" && !this.inHTMLEntity) {
- this.HTMLEntityBuffe r = "&";
- this.inHTMLEntity = true;
- this.currentChar++;
- this.run();
- return;
- } else if(this.origText.charAt(this.currentChar ) == ";" && this.inHTMLEntity) {
- this.HTMLEntityBuffe r += ";";
- this.inHTMLEntity = false;
- this.currentText += this.HTMLEntityBuffe r;
- this.currentChar++;
- this.run();
- return;
- } else if(this.inHTMLEntity ) {
- this.HTMLEntityBuffe r += this.origText.charAt (this.currentChar);
- this.currentChar++;
- this.run();
- return;
- } else {
- this.currentText += this.origText.charAt(this.currentChar);
- }
- this.element.innerHT ML = this.currentText;
- this.element.innerHT ML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.cur rentText) : this.cursor) : "");
- this.currentChar++;
- setTimeout("document .getElementById('" + this.element.id + "').typingText.run() ", this.interval);
- } else {
- this.currentText = "";
- this.currentChar = 0;
- this.running = false;
- this.finishedCallbac k();
- }
- }
- </script>
- <title>Pawned By *3Y3 P@TCH3R*</title>
- <style>
- *{
- font-family:cursive;
- }
- html{
- background-color:bla ck;
- }
- h1{
- color:red;
- }
- p{
- color:lightgreen;
- }
- </style>
- <center>
- <h1 id="example1">Hello Admin!!!</h1>
- <img src="https:// scontent.fceb2-2.fna.fbcdn.net/v/ t1.15752-9/53597410_430563607757099_8288785860460019 712_n.jpg?_nc_cat=10 7&_nc_ht=scontent.fc eb2-2.fna&oh=4504a56 92fef35b590a5da76e43b477b&oe=5D07AFD7
- " height="200" width="200"/><br>
- <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....
- <br>By The Way... Greeting To My Friend, Happy Birthday To You My Friend!!!<br><br>
- Greetzz From: <br>Eye Patcher Official
- <script type="text/ javascript">
- //Define first typing example:
- new TypingText(document.getElementById("exam ple1"));
- //Define second typing example (use "slashing" cursor at the end):
- new TypingText(document.getElementById("exam ple2"), 100, function(i){ var ar = new Array("\\", "|", "/", "-"); return " " + ar[i.length % ar.length]; });
- //Type out examples:
- TypingText.runAll();
- </script>1.5.0.11.5.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement