document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <style type="text/css">
  2. /* Circle Text Styles */
  3. /*http://www.dynamicdrive.com/dynamicindex13/circletext.htm */
  4. #outerCircleText {
  5. /* Optional - DO NOT SET FONT-SIZE HERE, SET IT IN THE SCRIPT */
  6. font-style: italic;
  7. font-weight: bold;
  8. font-family: 'comic sans ms', verdana, arial;
  9. color: #000;
  10. /* End Optional */
  11.  
  12. /* Start Required - Do Not Edit */
  13. position: absolute;top: 0;left: 0;z-index: 3000;cursor: default;}
  14. #outerCircleText div {position: relative;}
  15. #outerCircleText div div {position: absolute;top: 0;left: 0;text-align: center;}
  16. /* End Required */
  17. /* End Circle Text Styles */
  18. </style>
  19. <script type="text/javascript">
  20.  
  21. /* Circling text trail- Tim Tilton
  22. Website: http://www.tempermedia.com/
  23. Visit: http://www.dynamicdrive.com/ for Original Source and tons of scripts
  24. Modified Here for more flexibility and modern browser support
  25. Modifications as first seen in http://www.dynamicdrive.com/forums/
  26. username:jscheuer1 - This notice must remain for legal use
  27. */
  28.  
  29. ;(function(){
  30.  
  31. // Your message here (QUOTED STRING)
  32. var msg = "Selamat Datang";
  33.  
  34. /* THE REST OF THE EDITABLE VALUES BELOW ARE ALL UNQUOTED NUMBERS */
  35.  
  36. // Set font's style size for calculating dimensions
  37. // Set to number of desired pixels font size (decimal and negative numbers not allowed)
  38. var size = 24;
  39.  
  40. // Set both to 1 for plain circle, set one of them to 2 for oval
  41. // Other numbers & decimals can have interesting effects, keep these low (0 to 3)
  42. var circleY = 0.75; var circleX = 2;
  43.  
  44. // The larger this divisor, the smaller the spaces between letters
  45. // (decimals allowed, not negative numbers)
  46. var letter_spacing = 5;
  47.  
  48. // The larger this multiplier, the bigger the circle/oval
  49. // (decimals allowed, not negative numbers, some rounding is applied)
  50. var diameter = 10;
  51.  
  52. // Rotation speed, set it negative if you want it to spin clockwise (decimals allowed)
  53. var rotation = 0.4;
  54.  
  55. // This is not the rotation speed, its the reaction speed, keep low!
  56. // Set this to 1 or a decimal less than one (decimals allowed, not negative numbers)
  57. var speed = 0.3;
  58.  
  59. ////////////////////// Stop Editing //////////////////////
  60.  
  61. if (!window.addEventListener && !window.attachEvent || !document.createElement) return;
  62.  
  63. msg = msg.split('');
  64. var n = msg.length - 1, a = Math.round(size * diameter * 0.208333), currStep = 20,
  65. ymouse = a * circleY + 20, xmouse = a * circleX + 20, y = [], x = [], Y = [], X = [],
  66. o = document.createElement('div'), oi = document.createElement('div'),
  67. b = document.compatMode && document.compatMode != "BackCompat"? document.documentElement : document.body,
  68.  
  69. mouse = function(e){
  70. e = e || window.event;
  71. ymouse = !isNaN(e.pageY)? e.pageY : e.clientY; // y-position
  72. xmouse = !isNaN(e.pageX)? e.pageX : e.clientX; // x-position
  73. },
  74.  
  75. makecircle = function(){ // rotation/positioning
  76. if(init.nopy){
  77. o.style.top = (b || document.body).scrollTop + 'px';
  78. o.style.left = (b || document.body).scrollLeft + 'px';
  79. };
  80. currStep -= rotation;
  81. for (var d, i = n; i > -1; --i){ // makes the circle
  82. d = document.getElementById('iemsg' + i).style;
  83. d.top = Math.round(y[i] + a * Math.sin((currStep + i) / letter_spacing) * circleY - 15) + 'px';
  84. d.left = Math.round(x[i] + a * Math.cos((currStep + i) / letter_spacing) * circleX) + 'px';
  85. };
  86. },
  87.  
  88. drag = function(){ // makes the resistance
  89. y[0] = Y[0] += (ymouse - Y[0]) * speed;
  90. x[0] = X[0] += (xmouse - 20 - X[0]) * speed;
  91. for (var i = n; i > 0; --i){
  92. y[i] = Y[i] += (y[i-1] - Y[i]) * speed;
  93. x[i] = X[i] += (x[i-1] - X[i]) * speed;
  94. };
  95. makecircle();
  96. },
  97.  
  98. init = function(){ // appends message divs, & sets initial values for positioning arrays
  99. if(!isNaN(window.pageYOffset)){
  100. ymouse += window.pageYOffset;
  101. xmouse += window.pageXOffset;
  102. } else init.nopy = true;
  103. for (var d, i = n; i > -1; --i){
  104. d = document.createElement('div'); d.id = 'iemsg' + i;
  105. d.style.height = d.style.width = a + 'px';
  106. d.appendChild(document.createTextNode(msg[i]));
  107. oi.appendChild(d); y[i] = x[i] = Y[i] = X[i] = 0;
  108. };
  109. o.appendChild(oi); document.body.appendChild(o);
  110. setInterval(drag, 25);
  111. },
  112.  
  113. ascroll = function(){
  114. ymouse += window.pageYOffset;
  115. xmouse += window.pageXOffset;
  116. window.removeEventListener('scroll', ascroll, false);
  117. };
  118.  
  119. o.id = 'outerCircleText'; o.style.fontSize = size + 'px';
  120.  
  121. if (window.addEventListener){
  122. window.addEventListener('load', init, false);
  123. document.addEventListener('mouseover', mouse, false);
  124. document.addEventListener('mousemove', mouse, false);
  125. if (/Apple/.test(navigator.vendor))
  126. window.addEventListener('scroll', ascroll, false);
  127. }
  128. else if (window.attachEvent){
  129. window.attachEvent('onload', init);
  130. document.attachEvent('onmousemove', mouse);
  131. };
  132.  
  133. })();
  134.  
  135. </script>
');