View Single Post
  #3  
Old 08-29-2006, 06:18 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
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(3502020"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"); 
Reply With Quote