chris_angell
09-24-2002, 12:50 PM
Hello.
god, I have just got back from holiday and I have been sat here trying to code... :confused: trying
what I am trying to do is make some normal text flash fast but displaying four alternating words ie, hello my name is chris.. ??
I have
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var msgRotateSpeed = 200; var textStr = new Array();
textStr[0] = "hello";
textStr[1] = "how";
textStr[2] = "are";
textStr[3] = "You";
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"white");
delay = 1;
link = 0;
vlink = 2;
function textflasher() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
setTimeout("linkDance()",delay*10);
}
textflasher();
// End -->
</script>
</head>
<body>
<FONT><BR><A >my text here</A></FONT>
ok this is as far as i got, I was starting to try to combine the code so it would flash and alternate the text..
can anyone help because I am stuck, there is no way I would be able to do this, well not this year .. ho ho ho
thank you .... help me :eek:
god, I have just got back from holiday and I have been sat here trying to code... :confused: trying
what I am trying to do is make some normal text flash fast but displaying four alternating words ie, hello my name is chris.. ??
I have
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var msgRotateSpeed = 200; var textStr = new Array();
textStr[0] = "hello";
textStr[1] = "how";
textStr[2] = "are";
textStr[3] = "You";
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"white");
delay = 1;
link = 0;
vlink = 2;
function textflasher() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
setTimeout("linkDance()",delay*10);
}
textflasher();
// End -->
</script>
</head>
<body>
<FONT><BR><A >my text here</A></FONT>
ok this is as far as i got, I was starting to try to combine the code so it would flash and alternate the text..
can anyone help because I am stuck, there is no way I would be able to do this, well not this year .. ho ho ho
thank you .... help me :eek: