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

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

New Here ,
May 12, 2014 May 12, 2014

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?

155
Translate
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
Guide ,
May 12, 2014 May 12, 2014
LATEST

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.

Translate
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