Trying to get the text to change from one sentence to another… But can’t seem to figure out why it’s not changing. Can someone help, please?
<script type=”text/javascript”>
/* <![CDATA[
var curMessage=”message1″;
var changeMessage;
function adMessage() {
if (curMessage == “message2”) {
document.advertising.message.value = “Place your Thanksgiving orders today!”;
curMessage = “message1”;
}
else {
document.advertising.message.value = “All orders must be received by November 20th!”;
curMessage = “message2”;
}
}
/* ]]>
</script>
</head>
<body onload=”var changeQuote=setInterval(‘adMessage()’,2000);”>
<h1>Forestville Foods</h1>
<h2>Party Platters</h2>
<form action=””>
<p><input type=”text” name=”message” size=”60″
value=”Place your Thanksgiving orders today!” /></p>
</form>