Please can you find out what's wrong, fix the script and tell me what was
wrong. Im just beginning
<html>
<head>
<title>Random Mad Lib!</title>
<script language="JavaS cript">
<!-- Hide
function displaymadlib(w 1, w2, w3, w4, w5, w6, w7, w8, w9, w0, w11, w22, w33,
w44, w55) {
document.writel n("The attack of the purple tissue!!!<br> Once there was
a/an "
+ w1
+ " tissue attacking a "
+ w2
+ " in"
+ w3
+ "! The tissue was even"
+ w4
+ "the"
+ w5
+ "! 4"
+ w6
+ "died of heart attacks. The"
+ w7
+ "was"
+ w8
+ "Suddenly, "
+ 9
+ "man came to"
+ w0
+ "the"
+ w11
+ ". He went up to the tissue and kicked it in the
+ w22
+ ", and the tissue"
+ w33
+ "to the ground. Its snot covered the "
+ w44
+ ", and everything there"
+ w55
+ ".");return true
}
// stop hiding -->
</SCRIPT>
</head>
<body onload="documen t.madlib.adj1.s elect()">
<FORM NAME="madlib">
<p>
adjective:
<input name="adj1"></p><br>
<p>
place:
<input name="place1"></p><br>
<p>
another place:
<input name="place2"></p><br>
<p>
verb:
<input name="verb1"></p><br>
<p>
plural noun:
<input name="pnoun1"></p><br>
<p>
another plural noun:
<input name="pnoun2"></p><br>
<p>
place:
<input name="place3"></p><br>
<p>
adjective:
<input name="adj2"></p><br>
<p>
noun:
<input name="noun1"></p><br>
<p>
verb:
<input name="verb2"></p><br>
<p>
noun:
<input name="noun2"></p><br>
<p>
body part:
<input name="bpart"></p><br>
<p>
verb:
<input name="verb3"></p><br>
<p>
place:
<input name="place4"></p><br>
<p>
verb:
<input name="verb4"></p><br>
<p>
<br>
<p>
<INPUT TYPE="button" NAME="Submit" VALUE="Submit to get your mad lib!"
OnClick="displa ymadlib(documen t.madlib.adj1.v alue,
document.madlib .place1.value, document.madlib .place2.value,
document.madlib .verb1.value, document.madlib .pnoun1.value,
document.madlib .pnoun2.value, document.madlib .place3.value,
document.madlib .adj2.value, document.madlib .noun1.value,
document.madlib .verb2.value, document.madlib .noun2.value,
document.madlib .bpart.value, document.madlib .verb3.value,
document.madlib .place4.value, document.madlib .verb4.value)">
<INPUT TYPE="reset" VALUE="reset">
</form>
</body>
</html>
wrong. Im just beginning
<html>
<head>
<title>Random Mad Lib!</title>
<script language="JavaS cript">
<!-- Hide
function displaymadlib(w 1, w2, w3, w4, w5, w6, w7, w8, w9, w0, w11, w22, w33,
w44, w55) {
document.writel n("The attack of the purple tissue!!!<br> Once there was
a/an "
+ w1
+ " tissue attacking a "
+ w2
+ " in"
+ w3
+ "! The tissue was even"
+ w4
+ "the"
+ w5
+ "! 4"
+ w6
+ "died of heart attacks. The"
+ w7
+ "was"
+ w8
+ "Suddenly, "
+ 9
+ "man came to"
+ w0
+ "the"
+ w11
+ ". He went up to the tissue and kicked it in the
+ w22
+ ", and the tissue"
+ w33
+ "to the ground. Its snot covered the "
+ w44
+ ", and everything there"
+ w55
+ ".");return true
}
// stop hiding -->
</SCRIPT>
</head>
<body onload="documen t.madlib.adj1.s elect()">
<FORM NAME="madlib">
<p>
adjective:
<input name="adj1"></p><br>
<p>
place:
<input name="place1"></p><br>
<p>
another place:
<input name="place2"></p><br>
<p>
verb:
<input name="verb1"></p><br>
<p>
plural noun:
<input name="pnoun1"></p><br>
<p>
another plural noun:
<input name="pnoun2"></p><br>
<p>
place:
<input name="place3"></p><br>
<p>
adjective:
<input name="adj2"></p><br>
<p>
noun:
<input name="noun1"></p><br>
<p>
verb:
<input name="verb2"></p><br>
<p>
noun:
<input name="noun2"></p><br>
<p>
body part:
<input name="bpart"></p><br>
<p>
verb:
<input name="verb3"></p><br>
<p>
place:
<input name="place4"></p><br>
<p>
verb:
<input name="verb4"></p><br>
<p>
<br>
<p>
<INPUT TYPE="button" NAME="Submit" VALUE="Submit to get your mad lib!"
OnClick="displa ymadlib(documen t.madlib.adj1.v alue,
document.madlib .place1.value, document.madlib .place2.value,
document.madlib .verb1.value, document.madlib .pnoun1.value,
document.madlib .pnoun2.value, document.madlib .place3.value,
document.madlib .adj2.value, document.madlib .noun1.value,
document.madlib .verb2.value, document.madlib .noun2.value,
document.madlib .bpart.value, document.madlib .verb3.value,
document.madlib .place4.value, document.madlib .verb4.value)">
<INPUT TYPE="reset" VALUE="reset">
</form>
</body>
</html>
Comment