Schießen Sie auf den Kürbis!


Zu leicht? Probieren Sie erst!


Ergebnis

Laden Sie sich den Kürbis runter

Dieser Teil des Scripts kommt in den Headbereich

<style><!--
#b {position: absolute; cursor: hand}
//--></style>
<script language=JavaScript><!--
level = 750;
function Init() {
var xs = screen.availWidth/2;
var ys = screen.availHeight/2;
var x = Math.round(Math.random()*xs);
var y = Math.round(Math.random()*ys);
b.style.pixelLeft = x;
b.style.pixelTop = y;
timer = setTimeout("Init()",level);
}
var count = 0;
var right = 0;
function Right() {
alert("Guter Schuß!");
right++;
}
function Count() { count++ }
function Score() {
count--; // When you click 'Score', it also counts
pc = Math.round(eval(right*100 / count));
if (isNaN(pc)) { pc = 0 }
alert(" Ergebnis\n\nSchüsse:\t\t"+ count+"\nGetroffen:\t" + right +"\nAusbeute:\t"+pc+"%");
}
//--></script>

Dieser Teil des Scripts kommt in den BodyTag
onmousedown=Count() onload=Init() link=blue vlink=blue alink=blue
Dieser Teil des Scripts kommt in den Bodybereich
<div align="center">
<h2>Schie&szlig;en Sie auf den K&uuml;rbis!</h2>
<p>
<select name=slc onchange="level=this.value">
<option value="1500">Leicht</option>
<option value="1000">Mittel</option>
<option value="750" selected>Normal </option>
<option value="400">Schwer</option>
</select>
</p>
<p><br>
<small>Zu leicht? Probieren Sie erst!</small></p>
<p><br>
<u><b style="cursor:hand" onclick=Score()>Ergebnis</b></u><br>
<img src=../images/tgt6.gif width=50 height=50 id=b onmousedown=Right() style="left: 432px; top: 87px">
</p>
</div>