Posted on 2006-05-11
Basically the jist of the question is this. I have multiple function that I need to be running during the onmousemove event for different purposes. They cannot be combined into a single function. I've attempted a few things, but most of them end up just not working, they don't throw an error, but they don't work either. Here's a quick example of some of the things I've tried:
//assume the two referenced function exist.
//these are thing things I've tried.
document.onmousemove = func1 + func2;
document.onmousemove = eval(func1 + func2);
document.onmousemove = eval(func1 + ";" + func2 + ";");
I'm out of ideas at this point. I've basically come to the conclusion that using a string or and evaluation thereof won't work. Any help would be much appreciated!! Thanks!!