Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <title>Kau Tak Sendiri</title>
- <audio autoplay loop>
- <source src="http://micro.gear.host/music/Kau_Tak_Sendiri.mp3"></source>
- </audio>
- <head>
- <link href='https://fonts.googleapis.com/css?family=Schoolbell' rel='stylesheet' type='text/css'>
- <link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
- </head>
- <body bgcolor="#2b2b2b" link="gray" text="gray">
- <center>
- <script type="text/javascript">
- TypingText = function(element, interval, cursor, finishedCallback) {
- if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
- this.running = true;
- return;
- }
- this.element = element;
- this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
- this.interval = (typeof interval == "undefined" ? 100 : interval);
- this.origText = this.element.innerHTML;
- this.unparsedOrigText = this.origText;
- this.cursor = (cursor ? cursor : "");
- this.currentText = "";
- this.currentChar = 0;
- this.element.typingText = this;
- if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
- TypingText.all.push(this);
- this.running = false;
- this.inTag = false;
- this.tagBuffer = "";
- this.inHTMLEntity = false;
- this.HTMLEntityBuffer = "";
- }
- TypingText.all = new Array();
- TypingText.currentIndex = 0;
- TypingText.runAll = function() {
- for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
- }
- TypingText.prototype.run = function() {
- if(this.running) return;
- if(typeof this.origText == "undefined") {
- setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
- return;
- }
- if(this.currentText == "") this.element.innerHTML = "";
- if(this.currentChar < this.origText.length) {
- if(this.origText.charAt(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.HTMLEntityBuffer = "&";
- this.inHTMLEntity = true;
- this.currentChar++;
- this.run();
- return;
- } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
- this.HTMLEntityBuffer += ";";
- this.inHTMLEntity = false;
- this.currentText += this.HTMLEntityBuffer;
- this.currentChar++;
- this.run();
- return;
- } else if(this.inHTMLEntity) {
- this.HTMLEntityBuffer += this.origText.charAt(this.currentChar);
- this.currentChar++;
- this.run();
- return;
- } else {
- this.currentText += this.origText.charAt(this.currentChar);
- }
- this.element.innerHTML = this.currentText;
- this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : "");
- this.currentChar++;
- setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
- } else {
- this.currentText = "";
- this.currentChar = 0;
- this.running = false;
- this.finishedCallback();
- }
- }
- </script>
- <font face= "Schoolbell">
- <p id="a"><font>You Are Not Alone
- </p></font>
- <script type="text/javascript">
- new TypingText(document.getElementById("a"), 100, function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
- //Type out examples:
- </script>
- <font face= "Schoolbell">
- <font id="aa"><font> Right now, there are people all <br> over the world who are just like you. <br><br>
- They're either lonely, they're missing <br> somebody, they're depressed, they're hurt, <br> they're scarred from their past, they're having <br> personal issues no one knows about, they <br> have secrets you wouldn't believe. <br><br>
- They wish and they dream and they hope. <br> They wish things will get better, and life <br> starts going the way they want it. <br><br>
- They look out the window whenever they're in <br> the car or on a bus or a train and they <br> watch the people on the streets and <br> wonder what they've been through. <br><br>
- They wonder if there are people <br> out there like them. They're like you, <br> and you could tell them everything and <br> they would understand. <br><br>
- And right now, they're sitting here reading <br> these words, and I'm writing this for you <br> so you don't feel alone anymore. <br><br>
- You're not alone, the problems and <br> disappointments you've gone through or <br> facing now. Someone somewhere <br> across the world understands. <br><br>
- Whatever you're facing right now, whatever <br> negative things are happening in your life <br> i stand in faith that things will get <br> better for you. <br><br>
- Don't worry about the future, <br> don't be depressed about your past <br> and just focus on today. <br><br>
- And if today's not going so great <br> don't worry! Tomorrow's a new chance. <br> Never give up, Kau tak Sendiri! <br><br>
- </font>
- <font face= "Kaushan Script">
- <font id="aa"><font> Quote: Daniel Amos
- <script type="text/javascript">
- new TypingText(document.getElementById("aa"),95 , function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
- //Type out examples:
- TypingText.runAll();
- </script>
- </body>
- </html>
- <!--
- ########################################################
- // Coded: HarisID
- // Music: Bondan Prakoso - Kau Tak Sendiri
- // Quotes Karya: Boam Ramdhani - Daniel Amos
- // Hargai karya orang maka karya anda akan dihargai
- // Greetz: All My Friends.
- ########################################################
- <!-- #Source HarisID --!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement