Skip to main content
June 27, 2011
Question

Rolling over image/link in CHM displays image errror indicator

  • June 27, 2011
  • 1 reply
  • 938 views

Using Windows XP / RH7.

Hello.  A co-worker needs to supply the same project in both CHM and Webhelp versions.  She has recently worked with our design guy to introduce some new graphics and as part of that he did some css work and added some javascript.  Neither my co-worker or myself are familiar with Java.

One of her topics includes a graphic menu that is set up as a table with an image/link in each cell.  Mousing over each graphic pulls a second image file that displays the same image but with a tint to it, basically conveying the idea that this image is active, awaiting your click.

In the CHM output when you place the mouse pointer over one of the cell graphics the tinted image displays, but it also displays a small square with a red X in it, which has always meant to me that the image wasn't found or some error is occurring.

In the WEBHELP output this problem does not happen.  In both cases the link works and when clicked takes you to the intended target.

The screen shot below provides an illustration of what is happening.

Below the screen shot is the code that is displayed when I mouse over a cell and then right-click and select "Inspect Element" in Firebug.

Since I am not conversant in java I don't really know what other evidence I should be providing here, but I'm hoping this is at least a start.   I'm also hoping that the fact that the problem only surfaces in the CHM may make it evident to a more knowledgeable user what could be going on.

Thanks in advance for any help you can provide.

Joe

<tr>

<td style="padding: 1px;">

<implicit_p>

<a href="mergedProjects/lcri/lcri/Contents.htm">

<img id="Image16" height="58" border="1" width="125" style="width: 125px; height: 58px; border-width: 1px; border-style: solid;" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','rollover/LRCI.jpg',1)" alt="none" src="http://www.itsmarc.com/crsbeta2/images/LRCI.jpg">

</a>

</implicit_p>

    This topic has been closed for replies.

    1 reply

    Community Expert
    June 28, 2011

    I suspect the chm doesn't cope with the external URL. If you have rights to the image, you could try including it in the project baggage files and changing the reference to a relative link.

    P.S. not related to your problem, but just to be clear, javscript and Java are two very different beasts. What you have posted is javascript.

    July 5, 2011

    Thanks for the response.  Changing the external URL to a relative path did not solve the problem.   They have abandoned the hover feature for this release and hope to resolve it by the next one.    I'll post the solution if one is arrived at.  Thanks again.

    Joe

    Peter Grainge
    Community Expert
    Community Expert
    July 5, 2011

    They have abandoned the hover feature for this release and hope to resolve it by the next one.

    Where did that information come from please?


    See www.grainge.org for RoboHelp and Authoring tips

    @petergrainge

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.