I'm trying to make a mouseover class.
PHP Code:
//#CLIENTSIDE
public function onCreated() {
setTimer(1);
}
public function setToolTip(text) {
this.text = text;
setTimer(1);
}
function onTimeout() {
if (mousescreenx-12 in |this.x,this.x+this.width*4| && mousescreeny-6 in |this.y,this.y+this.height*8|) {
showTooltip();
}
else {
hideimg(350);
}
setTimer(1);
}
function showTooltip() {
echo(this.text); //shows correctly in F2 window on mouseover
showtext(350, 20, 20, "Arial", "b", this.text ).zoom = 0.6; //gives error in F2 window
changeimgvis(350,7);
}
Heres how I'm using it:
PHP Code:
findimg(i).join("mouseover");
findimg(i).setToolTip("test text");