yvesm
04-03-2005, 05:39 PM
Hello,
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
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>TEST</title>
</head>
<body onLoad="defil()" style="width:100%;overflow-x:hidden;overflow-y:scroll">
<script>
<!--
var Texte="Hello on my site. "
var long1=Texte.length
var pos=-long1
function defil() {
var affiche=""
pos=pos+1
if (pos==long1) {
pos=-pos
}
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
setTimeout("defil()",120)
}
// -->
</script>
</body>
</html>
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
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>TEST</title>
</head>
<body onLoad="defil()" style="width:100%;overflow-x:hidden;overflow-y:scroll">
<script>
<!--
var Texte="Hello on my site. "
var long1=Texte.length
var pos=-long1
function defil() {
var affiche=""
pos=pos+1
if (pos==long1) {
pos=-pos
}
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
setTimeout("defil()",120)
}
// -->
</script>
</body>
</html>