Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Hover over functionality

Hover over functionality 2 years 6 months ago #108937

  • scadoots
  • scadoots's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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 administrator has disabled public write access.

Hover over functionality 2 years 6 months ago #109041

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1374
  • Karma: 389
Hi

Quick exemple :
<span title="The définition">word</span>
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
Last Edit: 2 years 6 months ago by DenisChenu.
The administrator has disabled public write access.

Hover over functionality 2 years 6 months ago #109060

  • scadoots
  • scadoots's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Thanks! Is this something I can add to the answer choices or just the question?
The administrator has disabled public write access.

Hover over functionality 2 years 6 months ago #109340

  • scadoots
  • scadoots's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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 administrator has disabled public write access.

Hover over functionality 2 years 6 months ago #109425

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9555
  • Thank you received: 1374
  • Karma: 389
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 (Need support ?).
A bug not reported is a bug not corrected. | 2.61lts version improved | Need plugins for LimeSurvey ?
The administrator has disabled public write access.
Time to create page: 0.220 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form