I've been making this page, and I cannot figure out y this doesn't work. It works when I use 3 or so input's..but not as many as I have below!
I know it's long, but if anyone could help, I'd be greatly indetted to them! Thanx !
<html>
<script language="VBScript">
function updatePage()
name.innerHTML = document.game.name.value
best.innerHTML = document.game.best.value
inches.innerHTML = document.game.inches.value
crush.innerHTML = document.game.crush.value
celebrity.innerHTML = document.game.celebrity.value
instrument.innerHTML = document.game.instrument.value
body.innerHTML = document.game.body.value
verb.innerHTML = document.game.verb.value
fav_band.innerHTML = document.game.fav_band.value
dis_band.innerHTML = document.game.dis_band.value
fav_sup.innerHTML = document.game.fav_sup.value
fav_song.innerHTML = document.game.fav_song.value
end function
</script>
<FORM name="game">
name <input type="text" name="name"><BR>
best friend's name <input type="text" name="best"><BR>
a random No. <input type="text" name="inches"><BR>
your crush's/girlfriend's/boyfriend's name <input type="text" name="crush"><BR>
a celebrity's name<input type="text" name="celebrity"><BR>
choose an instrument <select name="instrument"><br>
<option>guitar
<option>drum
<option>bongo
<option>maracca
<option>bass
<option>banjo
<option>piano
<option>whistle
<option>dijeridoo
<option>recorder
<option>flute
<option>microphone
<option>deck
<option>spoon
<option>voilin
</select>
<br>
a body part <input type="text" name="body"><BR>
a verb ('ed..e.g kickED) <input type="text" name="verb"><BR>
your favourite band <input type="text" name="fav_band"><BR>
your most despised band <input type="text" name="dis_band"><BR>
your favourite member of Suppers Ready choose an instrument <select name="fav_sup"><br>
<option>Tom Holmes
<option>Tom Briton
<option>Tom Jordon
<option>Ben Harvey
<option>Ali Brais
</select>
<br>
your favourite song EVER! <input type="text" name="fav_song"><BR>
<Input type="BUTTON" Value="Go!" onClick="updatePage()">
</form>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<body>
One day
<span ID="name"></span> was invited to go to a gig by their mate
<b><span ID="best"></span></b>.
It was to go and see this AMAZING new band called Suppers Ready, who were being supported by
<b><span ID="fav_band"></span></b>.
Of course
<b><span ID="name"></span></b> said they'd be delighted to go!...so they did.
<br>
On the journey there, they found a
<b><span ID="instrument"></span></b> ,just casually left on the bus. So
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b>
picked it up.
<br>
Anyway, they reached the gig venue, and were overwhelmed by the sheer number of fans there for Suppers Ready (and of course one or two die hard fans of
<b><span ID="fav_band"></span></b> wandering around, trying not to give in to the overwhelming desire to follow Suppers Ready).............(they gave in eventually)
<br>
Well, after Suppers Ready had done most of their set,
<b><span ID="name"></span></b> was just thinking it couldn't get any better........when
<b><span ID="fav_sup"></span></b> announced they were just about to play
<b><span ID="fav_song"></span></b>.
<br>
Well
<b><span ID="name"></span></b> and his mate
<b><span ID="best"></span></b> were so chuffed they both jumped, moshed and accidentaly
<b><span ID="verb"></span></b>
<b><span ID="celebrity"></span></b> who had heard of Suppers ready through and had decided to come along and see for themselves what they were like.
<br>
As the evening grew to a close
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b> felt they had had a jolly good night, and decided to finish it off they'd like to get Suppers ready's autographs.
So they went back-stage....only to find
<b><span ID="fav_sup"></span></b> with
<b><span ID="celebrity"></span></b>, who was helping
<b><span ID="fav_sup"></span></b> hold the
<b><span ID="instrument"></span></b>
<b><span ID="inches"></span></b> inches up their
<b><span ID="body"></span></b>!!!
<br>
Well, after
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b> had, had a good laugh about this (having still gotton the autographs they wanted), they decided to walk home. As it was a charming evening
<b><span ID="name"></span></b> met up with
<b><span ID="crush"></span></b> and they all helped to crowdsurf
<b><span ID="dis_band"></span></b> over the road into oncoming traffic.
</body>
</html>
I know it's long, but if anyone could help, I'd be greatly indetted to them! Thanx !
<html>
<script language="VBScript">
function updatePage()
name.innerHTML = document.game.name.value
best.innerHTML = document.game.best.value
inches.innerHTML = document.game.inches.value
crush.innerHTML = document.game.crush.value
celebrity.innerHTML = document.game.celebrity.value
instrument.innerHTML = document.game.instrument.value
body.innerHTML = document.game.body.value
verb.innerHTML = document.game.verb.value
fav_band.innerHTML = document.game.fav_band.value
dis_band.innerHTML = document.game.dis_band.value
fav_sup.innerHTML = document.game.fav_sup.value
fav_song.innerHTML = document.game.fav_song.value
end function
</script>
<FORM name="game">
name <input type="text" name="name"><BR>
best friend's name <input type="text" name="best"><BR>
a random No. <input type="text" name="inches"><BR>
your crush's/girlfriend's/boyfriend's name <input type="text" name="crush"><BR>
a celebrity's name<input type="text" name="celebrity"><BR>
choose an instrument <select name="instrument"><br>
<option>guitar
<option>drum
<option>bongo
<option>maracca
<option>bass
<option>banjo
<option>piano
<option>whistle
<option>dijeridoo
<option>recorder
<option>flute
<option>microphone
<option>deck
<option>spoon
<option>voilin
</select>
<br>
a body part <input type="text" name="body"><BR>
a verb ('ed..e.g kickED) <input type="text" name="verb"><BR>
your favourite band <input type="text" name="fav_band"><BR>
your most despised band <input type="text" name="dis_band"><BR>
your favourite member of Suppers Ready choose an instrument <select name="fav_sup"><br>
<option>Tom Holmes
<option>Tom Briton
<option>Tom Jordon
<option>Ben Harvey
<option>Ali Brais
</select>
<br>
your favourite song EVER! <input type="text" name="fav_song"><BR>
<Input type="BUTTON" Value="Go!" onClick="updatePage()">
</form>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<body>
One day
<span ID="name"></span> was invited to go to a gig by their mate
<b><span ID="best"></span></b>.
It was to go and see this AMAZING new band called Suppers Ready, who were being supported by
<b><span ID="fav_band"></span></b>.
Of course
<b><span ID="name"></span></b> said they'd be delighted to go!...so they did.
<br>
On the journey there, they found a
<b><span ID="instrument"></span></b> ,just casually left on the bus. So
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b>
picked it up.
<br>
Anyway, they reached the gig venue, and were overwhelmed by the sheer number of fans there for Suppers Ready (and of course one or two die hard fans of
<b><span ID="fav_band"></span></b> wandering around, trying not to give in to the overwhelming desire to follow Suppers Ready).............(they gave in eventually)
<br>
Well, after Suppers Ready had done most of their set,
<b><span ID="name"></span></b> was just thinking it couldn't get any better........when
<b><span ID="fav_sup"></span></b> announced they were just about to play
<b><span ID="fav_song"></span></b>.
<br>
Well
<b><span ID="name"></span></b> and his mate
<b><span ID="best"></span></b> were so chuffed they both jumped, moshed and accidentaly
<b><span ID="verb"></span></b>
<b><span ID="celebrity"></span></b> who had heard of Suppers ready through and had decided to come along and see for themselves what they were like.
<br>
As the evening grew to a close
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b> felt they had had a jolly good night, and decided to finish it off they'd like to get Suppers ready's autographs.
So they went back-stage....only to find
<b><span ID="fav_sup"></span></b> with
<b><span ID="celebrity"></span></b>, who was helping
<b><span ID="fav_sup"></span></b> hold the
<b><span ID="instrument"></span></b>
<b><span ID="inches"></span></b> inches up their
<b><span ID="body"></span></b>!!!
<br>
Well, after
<b><span ID="name"></span></b> and
<b><span ID="best"></span></b> had, had a good laugh about this (having still gotton the autographs they wanted), they decided to walk home. As it was a charming evening
<b><span ID="name"></span></b> met up with
<b><span ID="crush"></span></b> and they all helped to crowdsurf
<b><span ID="dis_band"></span></b> over the road into oncoming traffic.
</body>
</html>