Hover-Over Image with HeatMap | XM Community
Skip to main content
Solved

Hover-Over Image with HeatMap


Is there any way to create a heatmap question so that upon hover-over, an alternate image appears? Thank you!

Best answer by Anonymous

Hello @JuliaB0603 , Paste the following lines in the Look and feel -> Advanced -> Header(edit)-> source(<>) <link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" /> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> Paste the following code in the js(onReady) of the Heat Map question `jQuery(".HeatMapImage").attr("title","").tooltip({ content: '<img src="YOUR_IMG_URL" />' });` Output: !
View original

4 replies

  • 0 replies
  • Answer
  • October 18, 2018
Hello @JuliaB0603 , Paste the following lines in the Look and feel -> Advanced -> Header(edit)-> source(<>) <link href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" /> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> Paste the following code in the js(onReady) of the Heat Map question `jQuery(".HeatMapImage").attr("title","").tooltip({ content: '<img src="YOUR_IMG_URL" />' });` Output: !

  • Author
  • 2 replies
  • October 18, 2018
Thank you, Shashi! This is great! Is there any way to have the hover-over image completely cover the original image so that it appears that there is an animation rather than two images? For example, when I hover over the plus in Chrome to add an additional tab, a dark grey circle appears around it.

  • 0 replies
  • October 18, 2018
Hello @JuliaB0603 , Use the below code: `jQuery(".HeatMapImage").attr("title","").tooltip({ position: { my: " top", at: "top", of: "img" },content: '<img src="YOUR_IMAGE_URL" />' });`

  • Author
  • 2 replies
  • October 19, 2018
Thank you, @Shashi ! Is there any way to get the hover-over image to completely replace the first (in size, location, etc), without the white border?

Leave a Reply