I have this JavaScript function
/* Use this method to send a message to the active chatwindow */
function sendMessageToActiveWindow(message) {
swfobject.getObjectById('lightIRC').sendMessageToActiveWindow(message);
}
I want to set up an array of messages and then every X minutes use sendMessageToActiveWindow(message)
with a randomly selected message from the array.
Is it possible to do such a thing in JavaScript/jQuery etc. and any examples?