That works but now I want send it some dynamically generated text and that doesn't. So the following works fine:
Code:
document.getElementById("MyElement").onmouseover = new Function("Flyover('My text here');");
But if I try this, it doesn't
Code:
var MyString = 'Hello there.';
document.getElementById("MyElement").onmouseover = new Function("Flyover(MyString);");