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

TOPIC: Hover over functionality

Hover over functionality 2 years 2 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 2 months ago #109041

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
Hi

Quick exemple :
<span title="The définition">word</span>
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
Last Edit: 2 years 2 months ago by DenisChenu.
The administrator has disabled public write access.

Hover over functionality 2 years 2 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 1 month 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 1 month ago #109425

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
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 developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.315 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form