Skip to main content
Inspiring
February 24, 2012
Answered

Need help with java script

  • February 24, 2012
  • 1 reply
  • 615 views

I have a little script that changes the color of a button graphic that I use for a popup topic.It does this, of course, by swapping out two images.

The script works just fine in RH Preview and also when the htm page is opened directly in a browser (both IE and Chrome).

However, when I open the topic in the compiled help, the second image does not display.

The one that works is in the RH Preview. The one that doesn't is in the compiled help.

Here's the code:

<a href="javascript:BSSCPopup('../MenuLocations/3DFace_menu_location.htm');"

                     id="a1" style="position: relative;"><img onmouseover="this.src = '../clickbutton-O.png'"

                               onmouseout="this.src = '../clickbutton.png'"

                               src="../clickbutton.png"

                               alt="Click for menu and toolbar locations and related topics."

                                         border="0" />

Any ideas?

~Margaret Becker

This topic has been closed for replies.
Correct answer Captiv8r

Hi Margaret

Likely you need to add the second image to Baggage in the expected location. Because JavaScript is handling swapping the images, RoboHelp is probably unaware of the second image.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

1 reply

Captiv8r
Captiv8rCorrect answer
Legend
February 24, 2012

Hi Margaret

Likely you need to add the second image to Baggage in the expected location. Because JavaScript is handling swapping the images, RoboHelp is probably unaware of the second image.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

Inspiring
February 24, 2012

Of course!  That fixed it! Thanks for the quick and helpful response.

~Margaret Becker