Help:LimeSurvey/Demo time

From TSG Doc
Jump to: navigation, 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.