Advertisement
HarisID

Aku Dan Bulan

Apr 19th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.33 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <title>Aku dan Bulan</title>
  4.  
  5.   <audio autoplay loop>
  6.   <source src="http://micro.gear.host/music/Aku_dan_Bintang.mp3">.  
  7.   </source>
  8.   </audio>
  9.   <body bgcolor="#999999" link="gray" text="#2b2b2b">
  10.   <center>
  11.    
  12. <head>
  13. <link href='https://fonts.googleapis.com/css?family=Miss+Fajardose' rel='stylesheet' type='text/css'>
  14. </head>
  15.  
  16. <script type="text/javascript">
  17. TypingText = function(element, interval, cursor, finishedCallback) {
  18.   if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) {
  19.     this.running = true;
  20.     return;
  21.   }
  22.   this.element = element;
  23.   this.finishedCallback = (finishedCallback ? finishedCallback : function() { return; });
  24.   this.interval = (typeof interval == "undefined" ? 100 : interval);
  25.   this.origText = this.element.innerHTML;
  26.   this.unparsedOrigText = this.origText;
  27.   this.cursor = (cursor ? cursor : "");
  28.   this.currentText = "";
  29.   this.currentChar = 0;
  30.   this.element.typingText = this;
  31.   if(this.element.id == "") this.element.id = "typingtext" + TypingText.currentIndex++;
  32.   TypingText.all.push(this);
  33.   this.running = false;
  34.   this.inTag = false;
  35.   this.tagBuffer = "";
  36.   this.inHTMLEntity = false;
  37.   this.HTMLEntityBuffer = "";
  38. }
  39. TypingText.all = new Array();
  40. TypingText.currentIndex = 0;
  41. TypingText.runAll = function() {
  42.   for(var i = 0; i < TypingText.all.length; i++) TypingText.all[i].run();
  43. }
  44. TypingText.prototype.run = function() {
  45.  if(this.running) return;
  46.  if(typeof this.origText == "undefined") {
  47.    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  48.    return;
  49.  }
  50.  if(this.currentText == "") this.element.innerHTML = "";
  51.  if(this.currentChar < this.origText.length) {
  52.    if(this.origText.charAt(this.currentChar) == "<" && !this.inTag) {
  53.      this.tagBuffer = "<";
  54.      this.inTag = true;
  55.      this.currentChar++;
  56.      this.run();
  57.      return;
  58.    } else if(this.origText.charAt(this.currentChar) == ">" && this.inTag) {
  59.      this.tagBuffer += ">";
  60.       this.inTag = false;
  61.       this.currentText += this.tagBuffer;
  62.       this.currentChar++;
  63.       this.run();
  64.       return;
  65.     } else if(this.inTag) {
  66.       this.tagBuffer += this.origText.charAt(this.currentChar);
  67.       this.currentChar++;
  68.       this.run();
  69.       return;
  70.     } else if(this.origText.charAt(this.currentChar) == "&" && !this.inHTMLEntity) {
  71.      this.HTMLEntityBuffer = "&";
  72.       this.inHTMLEntity = true;
  73.       this.currentChar++;
  74.       this.run();
  75.       return;
  76.     } else if(this.origText.charAt(this.currentChar) == ";" && this.inHTMLEntity) {
  77.      this.HTMLEntityBuffer += ";";
  78.       this.inHTMLEntity = false;
  79.       this.currentText += this.HTMLEntityBuffer;
  80.       this.currentChar++;
  81.       this.run();
  82.       return;
  83.     } else if(this.inHTMLEntity) {
  84.       this.HTMLEntityBuffer += this.origText.charAt(this.currentChar);
  85.       this.currentChar++;
  86.       this.run();
  87.       return;
  88.     } else {
  89.       this.currentText += this.origText.charAt(this.currentChar);
  90.     }
  91.     this.element.innerHTML = this.currentText;
  92.     this.element.innerHTML += (this.currentChar < this.origText.length - 1 ? (typeof this.cursor == "function" ? this.cursor(this.currentText) : this.cursor) : "");
  93.    this.currentChar++;
  94.    setTimeout("document.getElementById('" + this.element.id + "').typingText.run()", this.interval);
  95.  } else {
  96.         this.currentText = "";
  97.         this.currentChar = 0;
  98.        this.running = false;
  99.        this.finishedCallback();
  100.  }
  101. }
  102. </script>
  103.  
  104.  
  105. <font face= "Miss Fajardose">
  106. <p id="a"><font><h1>Bulan dan Bintang</h1>
  107. </p></font>
  108. <script type="text/javascript">
  109. new TypingText(document.getElementById("a"),100 , function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
  110. //Type out examples:
  111. </script>
  112.  
  113.  
  114. <font face= "Miss Fajardose" size="8">
  115. <font id="aa"><font> Jika engkau bulan <br> aku kan jadi bintang yang menemani <br> malam  tenang ku tahu engkau kesepian<br>Angin yang berhembus meniupkan <br> kata-kata indah yang merayu memanjamu <br> karna kutahu kau sayang padaku <br><br>
  116.  
  117. Dengarlah dengarlah lagu cinta dariku <br> yang kupersembahkan hanya padamu dan <br> kau takkan bisa berpaling dari cintaku karna <br> aku sempurna untuk dirimu oh kasihku <br><br>
  118.  
  119. Genggam tanganku dan kan kubawa dirimu <br> menyelami indahnya isi hatiku <br><br>
  120.  
  121. Dan kau takkan bisa berpaling dari cintaku <br> karna aku sempurna untuk dirimu oh kasihku <br> genggam tanganku dan kan kubawa dirimu <br> menyelami indahnya isi hatiku <br><br>
  122.  
  123. Dan kau takkan bisa berpaling dari cintaku <br> karna aku sempurna untuk dirimu oh kasihku <br> genggam tanganku dan kan kubawa dirimu <br> Menyelami indahnya isi hatiku <br> menyelami indahnya isi hatiku <br> menyelami indahnya isi hatiku <br><br>
  124.  
  125. </font>
  126. <script type="text/javascript">
  127. new TypingText(document.getElementById("aa"),110 , function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
  128. //Type out examples:
  129. TypingText.runAll();
  130. </script>
  131.  
  132.  
  133.   </body>
  134.   </html>
  135.  
  136.    <!--
  137.    ########################################################
  138.   // Coded: HarisID
  139.    // Music: Tereza - Lagu Cinta
  140.    // Hargai karya orang maka karya anda akan dihargai
  141.    // April 05 2018
  142.    // Greetz: All My Friends.
  143.    ########################################################
  144.  
  145.    <!-- #Source HarisID --!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement