Advertisement
hidden2209

Kode Tulisan Seperti Di Ketik

Oct 11th, 2014
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.94 KB | None | 0 0
  1. <div style="color: red; font-size: 15px; text-align: center; text-shadow:0px 0px 3px black;">
  2. <script language="JavaScript">
  3. var text="Contoh Teks di Ketik";
  4. var delay=200;
  5. var currentChar=1;
  6. var destination="[none]";
  7. function type()
  8. {
  9. //if (document.all)
  10. {
  11. var dest=document.getElementById(destination);
  12. if (dest)// && dest.innerHTML)
  13. {
  14. dest.innerHTML=text.substr(0, currentChar)+"<blink>_</blink>";
  15. currentChar++;
  16. if (currentChar>text.length)
  17. {
  18. currentChar=1;
  19. setTimeout("type()", 5000);
  20. }
  21. else
  22. {
  23. setTimeout("type()", delay);
  24. }
  25. }
  26. }
  27. }
  28. function startTyping(textParam, delayParam, destinationParam)
  29. {
  30. text=textParam;
  31. delay=delayParam;
  32. currentChar=1;
  33. destination=destinationParam;
  34. type();
  35. }
  36. </script> <b><div 0px="" 15px="" Bodoni MT="" color:="" blue="" font:="" id="textDestination" margin:="" style="background-color: none;"></div></b> <script language="JavaScript">
  37. javascript:startTyping(text, 50, "textDestination");
  38. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement