Ok, here's an update:
I received a suggestion of moving the following line out of the "if" statement,
Code:
//Rotate msg and display it in DIV:
document.getElementById("container").innerHTML = themessage;//applies entire message to div "container"
themessage = '';
}//end if
currentmsg = (currentmsg < msglength - 1)? currentmsg + 1 : 1; //(1 < 4 - 1)? 1 + 1 : 1;
and it works! Yeah.
But now I have another issue on this line:
Code:
setInterval("rotatemsg()",tickerobj.childNodes[0].firstChild.nodeValue);//set ticker to "pause" node value
...within the init_ticker() function. Now the pause still happens for the nodes not displayed. So although it does display only the nodes that have a status="active" value, the "1000" pause value still happens for those blank nodes. If anyone has any suggestions on how I can tweak my code to fix that as well, that would be great. Thanks.