function OnMouseOver

hi all
i want when mouse is over on the a guitexture printed “hello” and when mouse is out of (exit) of guitexture printed “goodbay” but this work 1 pass runing ineed to refresh command or function

help me please

function Update () {
}

function OnMouseOver () {
print(“helloooo”);

}
function OnMouseExit () {
print(“good bye”);
}
return;

Hi

Did you put your javascript on the guitexture ?