Make your own free website on Tripod.com
"; theSource+="
"; theSource+="

YOU WIN!!!

"; theSource+=""; document.myForm.txtGuess.value=""; } else { alert("there are " + numPetals + " petals around the rose."); numPetals=0; document.myForm.txtGuess.value=""; theSource+=""; theSource+=""; theSource+="
"; theSource+="



"; for(i=1; i<=5; i++) { roll=Math.floor(Math.random()*6)+1; switch(roll) { case 1: theSource+=""; break; case 2: theSource+=""; break; case 3: theSource+=""; numPetals += 2; break; case 4: theSource+=""; break; case 5: theSource+=""; numPetals += 4; break; case 6: theSource+=""; break; default: theSource+="ERROR!!"; } } } var theDoc=window.parent.Output.document; theDoc.open(); theDoc.write(theSource); theDoc.close; }

Petals around the Roses

How many Petals are around the rose?