Showing linkText on mouse over

Devin Asay devin_asay at byu.edu
Fri Feb 24 17:27:05 EST 2006


Thanks, Jonathan, Jacque, Jeanne, Trevor and Eric for your suggestions.

This is what I ended up with and it's working very well. It basically  
emulates what happens in a web browser when you hover over a link.

on mouseWithin
   if the mouse is down then exit mouseWithin
   if the textStyle of the mouseChunk contains "link" then
     set the cursor to hand
     lock cursor
     put the linkText of the mouseChunk into fld "status"
   else
     unlock cursor
     put empty into fld "status"
   end if
end mouseWithin

Don't forget to set the lockCursor to false when leaving the field or  
in the linkClicked handler, otherwise it get stuck on pointy finger.

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list