Well, friend, let's avert the question of "what works" for something better. First, thank you kindly for helping out. I'm only getting to this now; have not implemented your programming corrections. If you will, can you please slow down over the detail regarding the errors? I just learn enough programming to do what I need it to do, not unlike an "amateur" photographer (which I am :-)
So, before I go about this half-blinded, not really knowing why it works (as you see, I did sweat for what I've got), can you explain a bit slower, precisely why I must take to account the larger context of these corrections? I'm just trying to learn.
Also, is the following code (for the text engine (
~/iijima . . .) ok? ---
setTimeout("setInterval('alterText();', 90);", 2500);
I've heard complaints about similar usage, but not as how to fix it.
Originally Posted by
hielo
<script type="text/javascript">
var timer=[];
.
.
.
var letter = 0;
function alterText() { // lateral to var letter, the changes seem to be stylistic (?)
document.getElementById("L"+letter).style.visibility="visible";
document.getElementById("L"+letter).style.fontSize=Math.floor(140 + Math.random() * 100) + "%";
document.getElementById("L"+letter).style.color=genHex();
letter++;
if(letter>23)
{
clearTimeout(timer[0]);
clearTimeout(timer[1]);
clearTimeout(timer[2]);
}
}
</script>
.
.
.
<script type="text/javascript">
window.onload=function(){
timer[0]=setInterval("alterText();", 110);
timer[1]=setInterval("alter();", 100);
timer[3]=setInterval("alter();", 100);
}
.
.
.