Advertisement
DraKiNs

[COD] Zenit Polar v0.1

Aug 7th, 2011
512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. //----      Zenit Polar (Fast Crpty/Descripty in Javascript) ----
  4. //
  5. //////////////////////////////////////////////////////////////////////////
  6.  
  7. <script type="text/javascript">
  8.  
  9. function zenitPolar(string)
  10. {
  11.     var result = "";
  12.     for(c in string)
  13.     {  
  14.         if ("zeéêniíîtpoóôõlaáâãrZEÉÊNIÍÎTPOÓÔÕLAÁÂÃR".search(string[c]) != -1)    
  15.             result +=  "zeéêniíîtpoóôõlaáâãrZEÉÊNIÍÎTPOÓÔÕLAÁÂÃR"["pooolaaarzeeeeniiiitPOOOLAAARZEEEENIIIIT".search(string[c])] ;      
  16.         else       
  17.             result += string[c];       
  18.     }
  19.     return result;
  20. }
  21.  
  22. var string  = zenitPolar('usando zenit polar');
  23. alert(string);
  24.  
  25. </script>
  26.  
  27.  
  28. ----------------------------------------------------
  29. *  Criado por Bruno Silva
  30. * Agradecimentos a Macmod pelos caracteres!
  31. * www.ips-team.blgspot.com
  32. * (c) Copyright [iPs]TeaM
  33. * --------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement