Difference between revisions of "Help:LimeSurvey/Demo time"

From TSG Doc
Jump to navigation Jump to search
(Created page with "== 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, clic...")
 
Line 1: Line 1:
 
==  Limesurvey Demo time, Disappearing questions ==  
 
==  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:
+
A similar trick as we used with the [[Demo video|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/>
 
  Following text disappears after five seconds:<br/>

Revision as of 12:37, 9 January 2015

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.