Help:LimeSurvey/Demo time

From TSG Doc
< Help:LimeSurvey
Revision as of 17:24, 30 April 2015 by E.vandenberge (talk | contribs) (E.vandenberge moved page Help:LimeSurvey\Demo time to Help:LimeSurvey/Demo time without leaving a redirect: Flipped the slash)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Try this demo survey

Limesurvey Demo time, Disappearing questions

A similar trick as we used with the h.264 video is also possible to let text disappear after a while. Type some text, click the source button. Let's assume it looks like this:

Following text disappears after five seconds:<br/>
Roses are red, violets are blue, I am gone, and so...

now change it into the following:

Following text disappears after five seconds:<br/>
<div id="question17">
  Roses are red, violets are blue, I am gone, and so...
</div>
<script type="text/javascript">
  setTimeout("document.getElementById('question17').style.visibility='hidden'", 3000);
</script>

Make sure the id (question17) is unique on the question page. It must appear precisely twice (as shown above). The 3000 is the time before the text disappears in ms. Try it in demo time.