Skip to main content
Known Participant
May 12, 2014
Question

Is there a way I can show variable name when i hover over a img?

  • May 12, 2014
  • 1 reply
  • 192 views

I have a working code below:

<cfoutput query="Mush2">

  <tr>

td nowrap="nowrap">#DATEFORMAT(commentdate, "mm/dd/yyyy")#</td>

......some code here

  <td nowrap="nowrap"><CFIF len(APPROVEDDATE)><img src="icon_checkmark.png" onmouseover="" onmouseout=""></cfif></td>

  </tr>

  </cfoutput>

Is it possible that when I hover over the image icon_checkmark i will be able to output the #dateapproved# in the mush2 query ?

Or do i have to end up using javascript or something else to make it happen?

    This topic has been closed for replies.

    1 reply

    Carl Von Stetten
    Legend
    May 12, 2014

    Just add a title attribute to your <img> tag:

    <img src="icon_checkmark.png" title="#Mush2.dateapproved#">

    That should result in the value being visible in the tooltip.

    -Carl V.