/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Text not changing?

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>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@cootheadJul 22.2009 — [list]
  • [*][url=http://www.webdeveloper.com/forum/showthread.php?t=213392][color=#600]this problem has already been posted and answered here.[/color][/url]
  • [/list]
    ×

    Success!

    Help @lilbrodeur spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...