HTML Code:
function onCreated()
{
this.mouseWidth = 5;
this.mouseHeight = 5;
this.mouseText = "Welcome to cHANDLER";
this.onTimeout();
}
function onTimeout()
{
if (mousex in |this.x, (this.x + this.mouseWidth)| && mousey in |this.y, (this.y +this.mouseHeight)|)
{
temp.mouseOver = true;
}
if (temp.mouseOver)
{
/*
triggerclient("weapon", "weaponName", "mouseAction", this.mouseText);
function onActionClientside(curOption, curText)
{
if (temp.curOption == "mouseAction")
{
*/
showtext(201, this.x, this.y, "Arial", "bc", this.mouseText);
changeimgvis(201, 2);
/*
}
else
if (temp.curOption == "hideText")
{
hideimg(201);
}
}
*/
}
else
{
hideimg(201);
/*
triggerclient("weapon", "weaponName", "hideText");
*/
}
setTimer(0.05);
}
Also, Raeiphon, I'd use something like that, I'd carry the ''message'' over to and then something to stop it.