Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Hover over functionality

  • scadoots
  • scadoots's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #108937 by scadoots
Hover over functionality was created by scadoots
Hi,

I'd like to add hover over functionality to a survey that I'm building. Basically I'd like a respondent to be able to hover over a word and see its definition. Is that possible? Thanks!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 years 6 months ago - 10 years 6 months ago #109041 by DenisChenu
Replied by DenisChenu on topic Hover over functionality
Hi

Quick exemple :
Code:
<span title="The définition">word</span>

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 10 years 6 months ago by DenisChenu.
The topic has been locked.
  • scadoots
  • scadoots's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #109060 by scadoots
Replied by scadoots on topic Hover over functionality
Thanks! Is this something I can add to the answer choices or just the question?
The topic has been locked.
  • scadoots
  • scadoots's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #109340 by scadoots
Replied by scadoots on topic Hover over functionality
Hi,

I'd like to add hover over functionality to both the questions and the answers. Would it be possible to get more thorough instruction? We do not have the most recent version of LimeSurvey so that may be another constraint.

If hover functionality does not exist, is there a way to link to a document or a website? I'm trying to show definitions to specific terms in both the question and answer.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 years 6 months ago #109425 by DenisChenu
Replied by DenisChenu on topic Hover over functionality
The title system is the quick way.

After you can use jquery.hover ,

A quick example for template.js (really quick)
Code:
$(function() {
$(".question-help").hide();
$(".question-text").hover(function(){
$(this).parent(".question-wrapper").find(".question-help").slideDown(800);
}, function() {
$(this).parent(".question-wrapper").find(".question-help").slideUp(800);
});
});

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose