View Full Version : Game

12-12-2007, 03:28 PM
Hey since my total knowledge of cooding if limited, so i was wondering, If some one could designe me a simple game that i require for shcool. it be a game board with little peons and a yes or No botton clicking yes makes the guy moves forward and no makes him moves backwards and shows a picture of someone doing a simple exerscise like push ups

thank you so much if do take this

12-12-2007, 09:25 PM
Thats not simple.

12-13-2007, 07:34 AM
Here . . .

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<title>Elite Webpage</title>

<input type="button" value="Yes" onclick="forward();" />
<input type="button" value="No" onclick="backward();" />

<img id="peon" src="http://www1.theforce.net/jc/icons/collecting/wampa_toy.gif" alt="peonImg"
style="position: absolute; top: 100px; left: 250px;"

<img id="workout" src="http://tbn0.google.com/images?q=tbn:0-nm-K8sv0ckeM:http://static.howstuffworks.com/gif/total-body-workout-routine-1.jpg" alt="workoutImg"
style="position: absolute; top: 100px; left: 400px; visibility: hidden;"

<script type="text/javascript">

function forward() {
var s = document.getElementById("peon").style;
s.top = parseInt(s.top) + 10 + "px";

function backward() {
var s = document.getElementById("peon").style;
s.top = parseInt(s.top) - 10 + "px";
s = document.getElementById("workout").style;
s.visibility = "visible";
backward.tim = setTimeout(function() {
s.visibility = "hidden";
}, 1500);


12-14-2007, 12:29 PM
Why are you hotlinking to my my site? The link:

<img id="workout" src="http://lensaunders.com/jday/images/pigjj.gif" alt="workoutImg"

in your coding above states this. Please remove this link immediately if you are still using it.