Bine aţi venit, Vizitator! Înregistrare RSS

Site-ul meu

Vineri, 2024-05-03
Principala » Fişiere » Scripturi

Generare parola
2010-08-31, 3:37 PM
acest stript trebue insertat dupa $PASSWORD1_FL$

Code
<script>
Chars = new Array ()
for (j = 65; j <=122; j++){
  if ((j < 91) || (j > 96)) {
  Chars[Chars.length] = String.fromCharCode(j);
  }
}
function GenerateRandomPassword(){
  PassLength = 10 + Math.round(5 * Math.random());
  Pass = ''
  for (i = 0; i < PassLength; i++){
  ChIndex = Math.round(Chars.length * Math.random()) - 1;
  if ((Chars[ChIndex]) && (Pass.length < 15)) {
  Pass += Chars[ChIndex];
  }
  }
  return Pass;
}
function NewPass(){
  NewRandPass = GenerateRandomPassword();
  $('#siF14, #siF15').attr('value', NewRandPass);
  $('#RandPass').hide('fast').html('Your password <b>' + NewRandPass + '</b><br><a href="javascript://" style="font-size: 9px; " onclick="NewPass()"><b>Generaţi parolă nouă</b></a>').show('slow');
}

</script>
<div id="RandPass">
<a href="javascript://" style="font-size: 9px; " onclick="NewPass()"><b>Parola Generata</b></a>
</div>
Categorie: Scripturi | Adăugat de: Admin
Vizualizări: 526 | Download-uri: 0 | Rating: 4.0/1
Total comentarii : 0
Prenume *:
Email *:
Cod *: