Skip to main content
Chaffer-New_User
Participating Frequently
May 6, 2019
Question

Javascript Alert Customization

  • May 6, 2019
  • 4 replies
  • 1195 views

Can the javascript alert box be coded so as to display a graphic or a thumbnail of a hyperlinked destination ?

Our use of Acrobat is primarily with PDF AutoCAD drawings.  Our goal is to hover over hyperlinks and bring forth thumbnails of the area hyperlinked, prior to actually going to that destination.

This topic has been closed for replies.

4 replies

Joel Geraci
Community Expert
Community Expert
May 7, 2019

You can do some tricky stuff with a grid of disabled buttons with transparent button faces that cover the page and then when the user mouses over a hyperlink (which is actually another button field) you set the icon for the button nearest but not overlapping the hyperlink to have the face of the PDF you want to link to. There's a lot of prep work but the results are stunning. 

Thom Parker
Community Expert
Community Expert
May 7, 2019
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Legend
May 7, 2019

It may lead to other issues, but if you can replace the hyperlinks with fields, you would have more events at your disposal (such as MouseEnter and MouseExit, which would allow to show/hide other fields, and to load a premade graphic.

try67
Community Expert
Community Expert
May 7, 2019

This is not something you can do in an alert or dialog. You're referring to a regular form. That is a better way of doing it, but it's not the same, of course.

Legend
May 7, 2019

Absolutely correct, and it may lead to a considerable amount of preparing the document. So, it would need some justification to do so.

try67
Community Expert
Community Expert
May 6, 2019

No. You can include graphics in a Dialog object, though.