These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Tooltip Script

Chris Lunt
Registered: Aug 22 2011
Posts: 17

Hi, I have a form with several small graphics (imagine a little lightbulb...)
When you hover the mouse over the pictures, they display a little tooltip.
 
I created these using a button, showing the icon only.
 
Thing is on the form, yes you get the tip when you hover over the image, but as you get a little hand appear too, it looks to a user like it's a link that you're supposed to click on.
 
Is there a way to either remove this without losing the tooltip, or I wondered if I could put some script in that just showed the tooltip upon click (mouse up) as well as hover?

My Product Information:
Acrobat Pro 10.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
I'm assuming you're using a button for the image, since that's the only form field that accepts images.
The problem is the only way to prevent the hand mouse icon from disappearing is to set the field to be read-only, but then the tooltip doesn't appear...

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Chris Lunt
Registered: Aug 22 2011
Posts: 17
Indeed, that's been an issue. That's why I wondered if I could just write a script so that if someone does click on the button, it pops up with the tooltip. Currently, if you hover over and the tooltip is displayed, then you click the icon, the tooltip disappears.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
The tooltip can't be made to appear using a script, but you can use something else, like a pop-up menu or an alert.
It's not exactly the same, though...

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Here's an idea:
Instead of using a tooltip, use a small text field at the corner of the button. You can the create MouseEnter and MouseExit actions to show/hide the text field. That way, even if the user clicks the button, the "tooltip" will remain visible.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com