eKiwi

Füge das folgende Script in den body-Bereich deiner HTML-Seite ein:


<script LANGUAGE="JavaScript">
<!-- Original: Aaron Mavrinac ghent-slicer@geocities.com -->

<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->

<!-- Begin
xloc = new Array(10);
yloc = new Array(10);
xloc[0] = "xa"
xloc[1] = "xb"
xloc[2] = "xc"
xloc[3] = "xd"
xloc[4] = "xe"
xloc[5] = "xf"
xloc[6] = "xg"
xloc[7] = "xh"
xloc[8] = "xi"
xloc[9] = "xj"
yloc[0] = "ya"
yloc[1] = "yb"
yloc[2] = "yc"
yloc[3] = "yd"
yloc[4] = "ye"
yloc[5] = "yf"
yloc[6] = "yg"
yloc[7] = "yh"
yloc[8] = "yi"
yloc[9] = "yj"
today=new Date();
jran=today.getTime();
var number=10;
var guesses=1;
var random_numx=0;
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_numx=Math.ceil( (jran/(im*1.0)) *number);
today=new Date();
jran=today.getTime();
var number=10;
var random_numy=0;
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_numy=Math.ceil( (jran/(im*1.0)) *number);
spyloc = xloc[random_numx-1] + yloc[random_numy-1]
function search(loc) {
if (loc==spyloc) {
alert("\n\nGratulation! Bravo! Gute Arbeit!\n\nDu hast den Spion in " + guesses + " Versuchen gefunden!");
}
else {
guesses++;
alert("Hier ist niemand ....")
}
}
// End -->
</script>
 

Den folgenden Quelltext benötigst du für die Erstellung des Formulars:


<form method="POST" name="searchb">
<div align="center"><center><p Times New Roman"><input type="checkbox"
onClick="javascript:search('xaya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xbya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiya');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjya');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayb');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyb');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyb');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayc');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyc');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyc');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayd');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyd');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyd');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xaye');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiye');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjye');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayf');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyf');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyf');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayg');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyg');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyg');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayh');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyh');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyh');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayi');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyi');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyi');" value="ON"><br>
<input type="checkbox" onClick="javascript:search('xayj');" value="ON"> <input
type="checkbox" onClick="javascript:search('xbyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xcyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xdyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xeyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xfyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xgyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xhyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xiyj');" value="ON"> <input type="checkbox"
onClick="javascript:search('xjyj');" value="ON"><br>
</p>
</center></div>
</form>
<FORM><INPUT TYPE='button' VALUE='Schließe Fenster' onClick='window.close()'></FORM>
</center>

Hinweis: Wenn du dir hier die Quelltexte kopierst, dann füge sie am besten mit einen Texteditor in dein HTML-Dokument ein, da die meisten Webeditoren es als normalen Text interpretieren.
 



Copyright Dunkel & Iwer GbR - Alle Rechte vorbehalten