BhieNEka

Cool Title Bar 1

Apr 9th, 2013
67
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. var data="abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()";
  3. var text="Ganti dengan Title kamu";//Your Text Here
  4. var done=1;
  5. statusIn(text);
  6. function statusIn(text){
  7.   var max=4;
  8.     var delay=100;
  9.     if (done){
  10.         done = 0;
  11.       decrypt_helper(text, max, delay,  0, max);
  12.  }
  13. }
  14. function decrypt_helper(text, runs_left, delay, charvar, max){
  15.     if (!done){
  16.     runs_left = runs_left - 1;
  17.    //alert( runs_left);
  18.     var status = text.substring(0,charvar);
  19.   for(var current_char = charvar; current_char < text.length; current_char++){
  20.         status += data.charAt(Math.round(Math.random()*data.length));
  21.         }
  22.     document.title = status;
  23.     var rerun = "decrypt_helper('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
  24.     var new_char = charvar + 1;
  25.     var next_char = "decrypt_helper('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
  26.     if(runs_left > 0){
  27.         setTimeout(rerun, delay);
  28.         }
  29.     else{
  30.         if (charvar < text.length){
  31.             setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
  32.             }
  33.         else
  34.             {
  35.             done = 1;
  36.             }
  37.         }
  38.     }
  39. statusIn(text);
  40. }
  41.  
  42. </script>
RAW Paste Data