• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Add Alt Attribute Info to a Custom Button

New Here ,
Jan 18, 2007 Jan 18, 2007

Copy link to clipboard

Copied

I have created an alternative to editing the “whtbar.js” file to give an image alt attribute information. We have a custom button in our help file that needed alt information, but we had already incorporated the text into the button’s image and did not want to add the text label. We also did not like the visual border treatment that adding a text label did to the button.

I wrote this JavaScript function that will not only accomplish this, but it will also capture the functionality that RoboHelp creates for the OnClick event handler and duplicates it in an OnKeyPress event handler for that same button. I have successfully tested this script in both IE (IE 6.0) and Mozilla (Firefox 1.5), and it appears to work fine.

Views

702

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 27, 2012 Mar 27, 2012

Copy link to clipboard

Copied

where is the script?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 27, 2012 Mar 27, 2012

Copy link to clipboard

Copied

The OP probably tried to attach it to their post, but it was stripped by the forum software. Hopefully they can show a screenshot image (using the camera icon in the web interface) to display the coding.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 08, 2014 Jan 08, 2014

Copy link to clipboard

Copied

LATEST

Solution is to set VAR BTN_TEXT=0; in whtbar.js. In a parent project, only the parent whtbar needs to be set

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp