Hello, I created a script that's manually added to each button that will make an associated image (button icon) visible or invisible. How would I go about making the script document wide (once) so I don't have to keep pasting the same code on each button? There may be dozens of these buttons in a single pdf so manually adding them would be tedious.
curName=event.target.name.substring(6,10); // name of button hit, ie. "toggle1" //turn on/off associated image if (getField("img"+curName).display == 1) { getField("img"+curName).display = display.visible; } else { getField("img"+curName).display = display.hidden; }
Any suggestions would be greatly appreciated.
Thanks,
Jason
George Kaiser