truviet911
07-08-2007, 09:11 AM
hey guys is it possible to have scrolling text on status bar with a specify color? for example i have this code on my page the default text is black. but how do i change the text color? me don't know about javascript hehe
<Script LANGUAGE="JavaScript">
var Count = 3;
var Text = " ** Type your personalized message here! And you are set.";
var Speed = 60;
var timerID = null;
var TimerRunning = false;
var i = 0;
while (i ++ < 140)
Text = " " + Text;
function Scroll(){
window.status = Text.substring(Count++, Text.length);
if (Count == Text.length)
Count = 0;
timerID = setTimeout("Scroll()", Speed);
TimerRunning = true;
}
function Start(){
Stop();
Scroll();
}
function Stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}
Start();
</Script>
<Script LANGUAGE="JavaScript">
var Count = 3;
var Text = " ** Type your personalized message here! And you are set.";
var Speed = 60;
var timerID = null;
var TimerRunning = false;
var i = 0;
while (i ++ < 140)
Text = " " + Text;
function Scroll(){
window.status = Text.substring(Count++, Text.length);
if (Count == Text.length)
Count = 0;
timerID = setTimeout("Scroll()", Speed);
TimerRunning = true;
}
function Start(){
Stop();
Scroll();
}
function Stop(){
if(TimerRunning)
clearTimeout(timerID);
TimerRunning = false;
}
Start();
</Script>