ICE Key Generator: Difference between revisions
Jump to navigation
Jump to search
m (capitalization) |
m (simplified html) |
||
Line 3: | Line 3: | ||
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; | var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; | ||
var l = chars.length-1; | var l = chars.length-1; | ||
document.write('<font style="font-size:5em">'); | |||
for(var x=0;x<=7;x++) | for(var x=0;x<=7;x++) | ||
{ | { | ||
document.write( | document.write(chars.charAt(Math.round(Math.random()*l))); | ||
} | } | ||
document.write('</font>'); | |||
</script></pre> | </script></pre> |
Revision as of 16:45, 17 May 2006
Source code
<script language="JavaScript" type="text/javascript"> var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'; var l = chars.length-1; document.write('<font style="font-size:5em">'); for(var x=0;x<=7;x++) { document.write(chars.charAt(Math.round(Math.random()*l))); } document.write('</font>'); </script>