Advertisement
HarisID

Kau Tak Sendiri #Part II

Oct 15th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.07 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title>Kau Tak Sendiri</title>
  4.  
  5.   <audio autoplay loop>
  6.   <source src="http://micro.gear.host/music/Kau_Tak_Sendiri.mp3"></source>
  7.   </audio>
  8.   <head>
  9.   <link href='https://fonts.googleapis.com/css?family=Schoolbell' rel='stylesheet' type='text/css'>
  10.   <link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
  11.   </head>
  12. <body bgcolor="#2b2b2b" link="gray" text="gray">
  13. <center>
  14.  
  15. <script type="text/javascript">
  16. TypingText = function(element, interval, cursor, finishedCallback) {
  17.   if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
  18.     this.running = true;
  19.     return;
  20.   }
  21.   this.element = element;
  22.   this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
  23.   this.interval = (typeof interval == "undefined" ? 100 : interval);
  24.   this.origText = this.element.innerHTML;
  25.   this.unparsedOrigText = this.origText;
  26.   this.cursor = (cursor ? cursor : "");
  27.   this.currentText = "";
  28.   this.currentChar = 0;
  29.   this.element.typingText = this;
  30.   if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
  31.   TypingText.all.push(this);
  32.   this.running = false;
  33.   this.inTag = false;
  34.   this.tagBuffer = "";
  35.   this.inHTMLEntity = false;
  36.   this.HTMLEntityBuffer = "";
  37. }
  38. TypingText.all = new Array();
  39. TypingText.currentIndex = 0;
  40. TypingText.runAll = function() {
  41.   for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
  42. }
  43. TypingText.prototype.run = function() {
  44.  if(this.running) return;
  45.  if(typeof this.origText == "undefined") {
  46.    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  47.    return;
  48.  }
  49.  if(this.currentText == "") this.element.innerHTML = "";
  50.  if(this.currentChar < this.origText.length) {
  51.    if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) {
  52.      this.tagBuffer = "<";
  53.      this.inTag = true;
  54.      this.currentChar++;
  55.      this.run();
  56.      return;
  57.    } else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) {
  58.      this.tagBuffer += ">";
  59.       this.inTag = false;
  60.       this.currentText += this.tagBuffer;
  61.       this.currentChar++;
  62.       this.run();
  63.       return;
  64.     } else if(this.inTag) {
  65.       this.tagBuffer += this.origText.charAt(this.currentChar);
  66.       this.currentChar++;
  67.       this.run();
  68.       return;
  69.     } else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) {
  70.      this.HTMLEntityBuffer = "&";
  71.       this.inHTMLEntity = true;
  72.       this.currentChar++;
  73.       this.run();
  74.       return;
  75.     } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
  76.      this.HTMLEntityBuffer += ";";
  77.       this.inHTMLEntity = false;
  78.       this.currentText += this.HTMLEntityBuffer;
  79.       this.currentChar++;
  80.       this.run();
  81.       return;
  82.     } else if(this.inHTMLEntity) {
  83.       this.HTMLEntityBuffer += this.origText.charAt(this.currentChar);
  84.       this.currentChar++;
  85.       this.run();
  86.       return;
  87.     } else {
  88.       this.currentText += this.origText.charAt(this.currentChar);
  89.     }
  90.     this.element.innerHTML = this.currentText;
  91.     this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : "");
  92.    this.currentChar++;
  93.    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  94.  } else {
  95.         this.currentText = "";
  96.         this.currentChar = 0;
  97.        this.running = false;
  98.        this.finishedCallback();
  99.  }
  100. }
  101. </script>
  102.  
  103. <font face= "Schoolbell">
  104. <p id="a"><font>You Are Not Alone
  105. </p></font>
  106. <script type="text/javascript">
  107. new TypingText(document.getElementById("a"), 100, function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
  108. //Type out examples:
  109. </script>
  110.  
  111. <font face= "Schoolbell">
  112. <font id="aa"><font> Right now, there are people all <br> over the world who are just like you. <br><br>
  113.  
  114. 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>
  115.  
  116. 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>
  117.  
  118. 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>
  119.  
  120. 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>
  121.  
  122. 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>
  123.  
  124. 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>
  125.  
  126. 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>
  127.  
  128. Don't worry about the future, <br> don't be depressed about your past <br> and just focus on today. <br><br>
  129.  
  130. 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>
  131. </font>
  132. <font face= "Kaushan Script">
  133. <font id="aa"><font> Quote: Daniel Amos
  134. <script type="text/javascript">
  135. new TypingText(document.getElementById("aa"),95 , function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
  136. //Type out examples:
  137. TypingText.runAll();
  138. </script>
  139.  
  140. </body>
  141. </html>
  142.  
  143.    <!--
  144.    ########################################################
  145.    // Coded: HarisID
  146.    // Music: Bondan Prakoso - Kau Tak Sendiri
  147.    // Quotes Karya: Boam Ramdhani - Daniel Amos
  148.    // Hargai karya orang maka karya anda akan dihargai
  149.    // Greetz: All My Friends.
  150.    ########################################################
  151.  
  152.    <!-- #Source HarisID --!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement