/    Sign up×
Community /Pin to ProfileBookmark

Colour change & other thing

Hi, i need support on 2 things

First off here is the code

[CODE]<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>
</head>

<body><SCRIPT LANGUAGE=”JavaScript”>

<!– Begin
var CurrentMsg = ‘A1 JavaScripts welcomes you to its website’;
function update(msg) {
var pad_str=””;
n = msg.length;
if(n<72) {
pad = (73-n)/2;
for(var i=0; i<pad; i++) {
pad_str+=” “;
}
}
CurrentMsg = pad_str + msg;
document.messages.field.value = CurrentMsg;
clearTimeout(timer);
timer = setTimeout(“idleMsg()”,2500);
}
function MakeArray(n) {
this.length=n;
for(var i = 1; i<= n; i++) {
this[i] = “”;
}
return(this);
}
var index = 1;
var notice_num = 9;
var notices = new MakeArray(notice_num);
notices[1] = “Min. 55 :(por) L_Messi jumps over the defender’s challenge”;
notices[2] = ” … L_Messi keeps his head down as he hits the shot!”;
notices[3] = ” … OOOOHHHHH!!!!”;
notices[4] = ” … GOAL !!”;
notices[5] = ” … How did that find its way in?”;

var timer = setTimeout(‘idleMsg()’,1500);
function nochange() {
document.messages.field.value = CurrentMsg;
}
function idleMsg() {
update(notices[index++]);
if(index>notice_num) {
index=1;
}
}
// End –>
</SCRIPT>
<center><font face=”Helvetica”>
<FORM name=”messages” onSubmit=”return false”>
<input type=”text” name=”field” size=60 style=”width:800″ value=” ” onFocus=”self.status=’Match’; return true” onChange=”nochange()”>
</FORM></font>
</CENTER>
</body>
</html>[/CODE]

  • 1. how do i edit this part
  • notices[1] = “Min. 55 por) L_Messi jumps over the defender’s challenge”;
    notices[2] = ” … L_Messi keeps his head down as he hits the shot!”;
    notices[3] = ” … OOOOHHHHH!!!!”;
    notices[4] = ” … GOAL !!”;
    notices[5] = ” … How did that find its way in?”;

    so that the texts have different background colours and text colours or is this not possible?

  • 2. also for any genius’ out there, is it possible that when it comes to one of text parts that comes up information elsewhere on the page loads or is that way to complicated
  • to post a comment
    JavaScript

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @ricpMar 18.2007 — Er.... I think 1995 just called, they said they want their code back! :o
    ×

    Success!

    Help @KevinKeegan 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,
    )...