login  Naam:   Wachtwoord: 
Registreer je!
 Scripts:

Scripts > JS > Spellen > galgje

galgje

Auteur: leejoo - 01 juli 2007 - 15:12 - Gekeurd door: Ibrahim - Hits: 8417 - Aantal punten: 4.25 (2 stemmen)



gewoon knippen en plakken

Code:
zet deze inplaats van de <body> tag
  1. <body onload="count();">


en zet deze tussen de <body onload="count();"> en de </body>
  1. <center>
  2.  
  3. <table border=1><tr>
  4. <form name="hang"><td align="center" colspan=13>
  5. <font size="4">Galgje</font></td></tr>
  6. <input type="hidden" name="word" value="">
  7.  
  8. <script language="javascript">
  9. // HIERONDER KUN JE NET ZOVEEL NAMEN / WOORDEN TOEVOEGEN ALS JE WILT
  10. var words=new Array();
  11. words[0] = "GEIRGINA VERBAAN";
  12. words[1] = "KATJA SCHUURMAN";
  13. words[2] = "TRIJNTJE OOSTERHUIS";
  14. words[3] = "MARCO BORSATO";
  15. words[4] = "DEF RHYMZ";
  16. words[5] = "KANE";
  17. words[6] = "DOMINIQUE VAN HULST";
  18. words[7] = "ANITA MEIJER";
  19. words[8] = "GORDON";
  20. words[9] = "JAN SMIT";
  21. words[10] = "MARLAYNE";
  22. words[11] = "JODY BERNAL";
  23. words[12] = "TIMELESS";
  24. words[13] = "XANDER DE BUISONJE";
  25. words[14] = "ANDRE VAN DUIN";
  26. words[15] = "TATJANA";
  27. words[16] = "PATTY BRARD";
  28. words[17] = "CLOSE TO YOU";
  29. words[18] = "RUTH JACCOT";
  30. words[19] = "PAUL DE LEEUW";
  31. words[20] = "ELLEN TEN DAMME";
  32. words[21] = "JIM";
  33. words[22] = "JAMAI";
  34. words[23] = "DE ZWARE JONGENS";
  35. words[24] = "BLOF";
  36. words[25] = "MARIANNE WEBER";
  37. words[26] = "FRANS BAUER";
  38. words[27] = "BZN";
  39. words[28] = "DJ JEAN";
  40. words[29] = "DJ TIESTO";
  41. words[30] = "KOOS ALBERTS";
  42. words[31] = "ANDRE HAZES";
  43. words[32] = "K OTIC";
  44. words[33] = "SITA";
  45. words[34] = "ZOOM";
  46. words[35] = "BOYBAND";
  47. words[36] = "ANOUK";
  48. words[37] = "CLOUSEAU";
  49. words[38] = "LOIS LANE";
  50. words[39] = "ILSE DELANGE";
  51. words[40] = "DE KAST";
  52. words[41] = "VAN DIK HOUT";
  53.  
  54. alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  55. ltr=0; ltc=0;
  56. for (i=0;i<2;i++)
  57. { document.write("<tr>");
  58. for (j=0;j<13;j++)
  59. { a='<td><tt><input type="button" value=" ';
  60. a+=alpha.substring(ltr,ltr+1)+' " onclick="';
  61. document.write(a+'letter(this);"></tt></td>'); ltr++; };
  62. document.write("</tr>"); };
  63.  
  64. var rnd=Math.floor(Math.random()*words.length);
  65. document.hang.word.value=words[rnd].toUpperCase();
  66. document.write('<tr><td colspan=13 align="center"><tt><font size=+2>');
  67. for (i=0;i<words[rnd].length;i++)
  68. { a=words[rnd].substring(i,i+1);
  69. if (alpha.indexOf(a,0)>-1) { a="*"; ltc++; };
  70. document.write('<input type="button" value="'+a+'">'); };
  71. document.write('</font></tt></td></tr>');
  72.  
  73. function letter(l)
  74. { a=l.value.substring(1,2); l.value=" "; dh=document.hang;
  75. if (a!=" ")
  76. { w=dh.word.value;
  77. b=w.indexOf(a,0); f=1; dhl=dh.left;
  78. while (b>-1)
  79. { dh.elements[b+27].value=a;
  80. b=w.indexOf(a,b+1); f=0; ltc--; };
  81. dhl.value-=f;
  82. if (dhl.value==0)
  83. for (j=0;j<26;j++)
  84. dh.elements[j+1].click();
  85. }; };
  86. function count()
  87. { dh=document.hang; dhc=dh.clock; dhl=dh.left;
  88. dhc.value-=1; v=dhl.value*ltc*dhc.value
  89. if (v>0)
  90. setTimeout("count();",1000);
  91. else
  92. { msg="GEFELICISLAGROOMTAART!";
  93. if (dhl.value<0)
  94. msg="JE HEBT GEEN POGINGEN MEER HELAAS!";
  95. if (ltc>0)
  96. msg="Time Out! Answer:\n"+dh.word.value;
  97. dhl.value="0";
  98. alert(msg);
  99. }; };
  100. </script>
  101. <tr><td align="center" colspan=5>Aantal Pogingen: <input type="button" value="10" name="left"></td>
  102. <td colspan=5 align="center">Overgebleven Tijd: <input type="button" value="60" name="clock"></td>
  103. <td colspan=3 align="center"><input type="button" value="Nogmaals" onclick="location='galgje.htm';">
  104. </td></form></tr></table>
  105.  
  106. </center>
Download code! Download code (.txt)

 Bekijk een voorbeeld van dit script!
 Stemmen
Niet ingelogd.

 Reacties
Post een reactie
Geen reacties (0)
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.064s