Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <title>Aku dan Bulan</title>
- <audio autoplay loop>
- <source src="http://micro.gear.host/music/Aku_dan_Bintang.mp3">.
- </source>
- </audio>
- <body bgcolor="#999999" link="gray" text="#2b2b2b">
- <center>
- <head>
- <link href='https://fonts.googleapis.com/css?family=Miss+Fajardose' rel='stylesheet' type='text/css'>
- </head>
- <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= "Miss Fajardose">
- <p id="a"><font><h1>Bulan dan Bintang</h1>
- </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= "Miss Fajardose" size="8">
- <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>
- 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>
- Genggam tanganku dan kan kubawa dirimu <br> menyelami indahnya isi hatiku <br><br>
- 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>
- 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>
- </font>
- <script type="text/javascript">
- new TypingText(document.getElementById("aa"),110 , function(i){ var ar = new Array(""); return " " + ar[i.length % ar.length]; });
- //Type out examples:
- TypingText.runAll();
- </script>
- </body>
- </html>
- <!--
- ########################################################
- // Coded: HarisID
- // Music: Tereza - Lagu Cinta
- // Hargai karya orang maka karya anda akan dihargai
- // April 05 2018
- // Greetz: All My Friends.
- ########################################################
- <!-- #Source HarisID --!>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement