Closed Bug 195658 Opened 21 years ago Closed 21 years ago

Scrolling text in Status Bar flickers, over-writes

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 104532

People

(Reporter: superbiskit, Assigned: rogerl)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030228
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030228

The page uses the following JavaScript to create a scrolling marquee effect in
the status bar.  What actually happens is two messages chasing each other across
the bar, flickering so badly they're illegible.

Quite possible it's the script that's faulty - I'm no expert.

<script LANGUAGE="javascript">
<!--
	var scrlStr="Most Holy Mother of God, save us"
	var width=150;
	var strLen=scrlStr.length;
	var pos=1-width
	function scroll()
		{
		var scroll = "";
		pos++;
		if (pos == strLen) pos =1 - width;
		if (pos<0)
		{
		for (var i=1; i<=Math.abs(pos); i++) scroll=scroll+" ";
		scroll=scroll+scrlStr.substring(0,width-i+1);
		}
		else
		scroll=scroll+scrlStr.substring(pos,pos+width);
		window.status=scroll;
		setTimeout("scroll()", 60);
		}
//-->
</SCRIPT>


Reproducible: Always

Steps to Reproduce:
1. Load the page
Does it happens when you have only with one tab or after opening several tabs?
(the latter one is bug 104532) 
Bingo!  Thanks, that one missed my search.
Particularly note the comment regarding the mess with a couple of tabs all
trying to drive the Status Bar.

*** This bug has been marked as a duplicate of 104532 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Verified Duplicate -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.