Escaner de placas AAA-ZZZ


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <script language="javascript">
  6. var a;
  7. var b;
  8. var c;
  9. var d;
  10.  
  11. a=65;
  12. b=65;
  13. c=65;
  14. d=65;
  15.  
  16. document.write(<h1>Hecho por Angelboy!!</h1>);
  17. while (b<=90)
  18. {
  19.  
  20. if(b==91)
  21. {
  22.  
  23. b=65;
  24. a=a+1
  25. }
  26. else
  27. {
  28. if (c>=91)
  29. {
  30. c=65;
  31. b=b+1;
  32. }
  33. else
  34. {
  35. if (d==91)
  36. {
  37. d=65;
  38. c=c+1;
  39. }
  40. else
  41. {
  42.  
  43. var imgsrc = 'http://images.habbo.com/c_images/album1584/'+String.fromCharCode(b)+String.fromCharCode(c)+String.fromCharCode(d)+'.gif';
  44. var img = new Image();
  45.  
  46. img.onerror = function (evt){
  47.  
  48. }
  49. img.onload = function (evt){
  50. document.write('<img src="'+this.src+'">');
  51. }
  52.  
  53. img.src = imgsrc;
  54.  
  55.  
  56. d=d+1;
  57. }
  58. }
  59. }
  60. }
  61. </script>
  62. </body>
  63. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.