[Würfelspiel 2]     [Würfelspiel 3]    [Würfelspiel 4]

 

Der Ordner "gifs" enthält 6 Würfelbilder "w1.gif", "w2.gif", usw.

 

<FORM name=form>

<P><IMG SRC="gifs/w1.gif" WIDTH=32 HEIGHT=32 ALIGN=bottom name=wuerfel>

<P><INPUT TYPE=button NAME=Taste VALUE="w&uuml;rfeln" onclick=" var n=Math.floor(6*Math.random())+1;

document.images[0].src="gifs/w"+n+".gif";">

</FORM>

 

 

Letzte Änderung: