View Full Version : Text defil not working under FF

04-03-2005, 05:39 PM
I use an old script working fine under IE but not under Firefox.
The purpose is to scroll text in the status bar.
Any one to help me ??
Many thanks


<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">

<body onLoad="defil()" style="width:100%;overflow-x:hidden;overflow-y:scroll">

var Texte="Hello on my site. "
var long1=Texte.length
var pos=-long1

function defil() {
var affiche=""
if (pos==long1) {
if (pos<0) {
for (var i=1;i<=-pos;i++) {
affiche = affiche + " "
affiche = affiche + Texte.substring(0,long1-i+1)
else {
affiche = affiche + Texte.substring(pos,long1+pos)
window.status = affiche

// -->


04-03-2005, 05:48 PM
Works on FF1.0.2 for win here. Are you a Mac user?

04-03-2005, 05:51 PM
Is this a Dynamic Drive script? If so, please include a link to it on DD. Otherwise, I'll need to move it to the JavaScript category.

04-04-2005, 07:28 AM
To jscheuer1:
It does not work on my FF 1.0.2 under Windows for me.... Is there any FF parameter to set ?? Thanks for your answer.

To ddadmin:
No i did not find this script in DD. Excuse me for the mistake. Move it. Thanks

04-04-2005, 07:48 AM
Tools - Options - Enable JavaScript (check box)

For good measure, check the advanced settings for JavaScript. All except:

"Hide the status bar"

should be enabled.

If that doesn't fix it, I don't know what to say except I copied your code exactly as you posted it, as a fresh page and it worked.

04-04-2005, 12:57 PM
Ok jscheuer1,
Using your tips, i found that if i check "Change text on status bar", it works what ever "Hide the status bar" is checked or unchecked !!!
Many thanks for the pointer.

04-04-2005, 03:04 PM
Using your tips, i found that if i check "Change text on status bar", it worksPerhaps this is a good point to interject then and say, "Don't fiddle with the status bar."

The status bar displays information that some people find crutial. It shouldn't be treated as your toy. Modifying it is also unreliable, as you have discovered. Decent user agents will prevent you from making changes, and users don't tend to stare at their status bar so you're not likely to communicate anything, anyway.