Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="color: red; font-size: 15px; text-align: center; text-shadow:0px 0px 3px black;">
- <script language="JavaScript">
- var text="Contoh Teks di Ketik";
- var delay=200;
- var currentChar=1;
- var destination="[none]";
- function type()
- {
- //if (document.all)
- {
- var dest=document.getElementById(destination);
- if (dest)// && dest.innerHTML)
- {
- dest.innerHTML=text.substr(0, currentChar)+"<blink>_</blink>";
- currentChar++;
- if (currentChar>text.length)
- {
- currentChar=1;
- setTimeout("type()", 5000);
- }
- else
- {
- setTimeout("type()", delay);
- }
- }
- }
- }
- function startTyping(textParam, delayParam, destinationParam)
- {
- text=textParam;
- delay=delayParam;
- currentChar=1;
- destination=destinationParam;
- type();
- }
- </script> <b><div 0px="" 15px="" Bodoni MT="" color:="" blue="" font:="" id="textDestination" margin:="" style="background-color: none;"></div></b> <script language="JavaScript">
- javascript:startTyping(text, 50, "textDestination");
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement