Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Status Bar Text Colour

Status
Not open for further replies.

CSUKNic

Technical User
Feb 3, 2002
62
GB
Hi there, I have a status bar scroller on my website at the moment, which works fine. It uses the ie5/6 status bar and I am happy with that. However, I cannot find anywhere how to change the text colour on that status bar. The scroller is written in java, and the code is attached. Could somebody tell me please how to change the boring black text to a different colour.

<script language="JavaScript1.2" type="text/javascript">
<!--if (parent.location.href!=window.location.href)parent.location.href=window.location.href;-->
function scrollit(seed) {
var m1 = "SCROLLER - - - - - ";

var msg=m1;
var out = " ";
var c = 1;
if (seed > 100) {
seed--;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
window.status=out;
cmd="scrollit("+seed+")";
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit(100)",75);
}
}
}

// End -->
</script>

CSUKNIC
Nic Brown


 
Hi

CSUKNic said:
I have a status bar scroller on my website at the moment, which works fine. It uses the ie5/6 status bar and I am happy with that.
I have JavaScript Options to disable changing the statusbar text.
CSUKNic said:
However, I cannot find anywhere how to change the text colour on that status bar.
You can not.
CSUKNic said:
The scroller is written in java, and the code is attached.
That is not Java. That is JavaScript.

Feherke.
 
Hi

Think about. To what color would you like to change the "text colour on that status bar" ? Usually it is black. But what if the user customized his browser with a black theme and now the statusbar text is white ? I am not so sure your changed text color will still has enough contrast to be readable.

I know, I use FireFox with Red Shift theme, but Explorer can be also customized :


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top