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>
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