Hi,
this script here displays a fading text message.
I would like to display 3 different messages, let's say "Fading text
1", "Fading text 2", "Fading text 3".
Also, is there a way to make it work under FireFox too?
Thank you very much for help
<SCRIPT LANGUAGE="JavaS cript1.2">
ie4 = ((navigator.app Version.indexOf ("MSIE")>0) &&
(parseInt(navig ator.appVersion ) >= 4));
var cnt = 0, cnt2 = 0, add1 = 3, add2 = 10, timerID;
function show() {
if (ie4) {
cnt += add1;
cnt2 += add2;
delay = 30;
if(cnt2 100) cnt2 = 100;
if(cnt 100) {
cnt = 100;
add1 = -10;
add2 = -3;
delay = 350;
}
if(cnt < 0) cnt = 0;
if(cnt2 < 0) {
cnt2 = 0;
add1 = 3;
add2 = 10;
delay = 200;
}
fader.style.fil ter = "Alpha(Opacity= "+cnt2+",Finish Opacity="+cnt
+",style=2)" ;
timerID = setTimeout("sho w()", delay);
}
}
window.onload = show;
</script>
</head>
<body bgcolor="#9B360 0">
<center<div id="fader" style="width:48 0;
Filter:Alpha(Op acity=0,FinishO pacity=0,style= 2)">
<h4<font family="Arial, Helvetica" color="#FFFFCC" >
FADING TEXT 1
<br><br></font></h4</div</center>
</body>
</html>
this script here displays a fading text message.
I would like to display 3 different messages, let's say "Fading text
1", "Fading text 2", "Fading text 3".
Also, is there a way to make it work under FireFox too?
Thank you very much for help
<SCRIPT LANGUAGE="JavaS cript1.2">
ie4 = ((navigator.app Version.indexOf ("MSIE")>0) &&
(parseInt(navig ator.appVersion ) >= 4));
var cnt = 0, cnt2 = 0, add1 = 3, add2 = 10, timerID;
function show() {
if (ie4) {
cnt += add1;
cnt2 += add2;
delay = 30;
if(cnt2 100) cnt2 = 100;
if(cnt 100) {
cnt = 100;
add1 = -10;
add2 = -3;
delay = 350;
}
if(cnt < 0) cnt = 0;
if(cnt2 < 0) {
cnt2 = 0;
add1 = 3;
add2 = 10;
delay = 200;
}
fader.style.fil ter = "Alpha(Opacity= "+cnt2+",Finish Opacity="+cnt
+",style=2)" ;
timerID = setTimeout("sho w()", delay);
}
}
window.onload = show;
</script>
</head>
<body bgcolor="#9B360 0">
<center<div id="fader" style="width:48 0;
Filter:Alpha(Op acity=0,FinishO pacity=0,style= 2)">
<h4<font family="Arial, Helvetica" color="#FFFFCC" >
FADING TEXT 1
<br><br></font></h4</div</center>
</body>
</html>
Comment