Blinking text

windows

Guest
I really hate blinking text but someone at work is insisting I put some on their page of our company intranet. We only use IE (various versions) and as far as I know it doesn't support the <BLINK> tags.<br />
<br />
Is there a way I can do this easily? I could throw together an animated gif but if there is a simpler way, please let me know!<br />
<br />
Thanks.<!--content-->You can use javascript:<br />
<br />
<br />
<script LANGUAGE="JavaScript1.2"> <br />
<br />
<!-- Begin <br />
function initArray() { <br />
this.length = initArray.arguments.length; <br />
for (var i = 0; i < this.length; i++) { <br />
this = initArray.arguments; <br />
} <br />
} <br />
<br />
var ctext = "Hi! Welcome to A1 JavaScripts, please enjoy your visit<br>and email me if you have any problems or questions.<BR>"; <br />
var speed = 1000; <br />
var x = 0; <br />
var color = new initArray( <br />
"yellow", <br />
"green", <br />
"blue", <br />
"black", <br />
"orange" <br />
); <br />
if(navigator.appName == "Netscape") { <br />
document.write('<layer id="c"><center>'+ctext+'</center></layer><br>'); <br />
} <br />
if (navigator.appVersion.indexOf("MSIE") != -1){ <br />
document.write('<div id="c"><center>'+ctext+'</center></div>'); <br />
} <br />
function chcolor(){ <br />
if(navigator.appName == "Netscape") { <br />
document.c.document.write('<center><font color="'+color[x]); <br />
document.c.document.write('">'+ctext+'</font></center>'); <br />
document.c.document.close(); <br />
} <br />
else if (navigator.appVersion.indexOf("MSIE") != -1){ <br />
document.all.c.style.color = color[x]; <br />
} <br />
(x < color.length-1) ? x++ : x = 0; <br />
} <br />
setInterval("chcolor()",1000); <br />
// EndA1 --> <br />
<br />
</script><br />
<br />
<br />
Put this between your <head> tags<!--content-->Thanks Mark, you're a star! ;)<!--content-->I would go with an animated gif if its not too big.<br />
<br />
Kevin<!--content-->Mmmm. Yeah, I've got the flashing text working which will do fine for now, but I could create something much nicer looking with an animated gif. I think I'll do that as soon as I get the time (I should be so lucky!).<br />
<br />
Thanks guys.<!--content-->
 
Back
Top