Check out the LimeSurvey source code on GitHub!

Hover over functionality

More
2 years 9 months ago #108937 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!

Please Log in to join the conversation.

More
2 years 9 months ago - 2 years 9 months ago #109041 by DenisChenu
Hi

Quick exemple :
<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 service on demand (or search sondages pro).
Last Edit: 2 years 9 months ago by DenisChenu.

Please Log in to join the conversation.

More
2 years 9 months ago #109060 by scadoots
Thanks! Is this something I can add to the answer choices or just the question?

Please Log in to join the conversation.

More
2 years 9 months ago #109340 by scadoots
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.

Please Log in to join the conversation.

More
2 years 8 months ago #109425 by DenisChenu
The title system is the quick way.

After you can use jquery.hover ,

A quick example for template.js (really quick)
$(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 service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form