Hallo,
habe ich eingestellt, funktioniert leider trotzdem nicht.
<pre style="margin-top: 0px; margin-bottom: 30px; font-family: monospace, serif; font-size: 13.3333px; padding: 0.5em; border: 1px dashed rgb(153, 153, 153); overflow: auto; background-color: rgb(247, 249, 250);" class="code javascript"><span style="color: rgb(102, 204, 102);" class="sy0"><</span>script type<span style="color: rgb(102, 204, 102);" class="sy0">=</span><span style="color: rgb(255, 0, 0);" class="st0">"text/javascript"</span><span style="color: rgb(102, 204, 102);" class="sy0">></span>
<span style="color: rgb(102, 204, 102);" class="sy0"><!--</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Funktion zur Weiterleitung</span>
<span style="color: rgb(177, 177, 0);" class="kw1">function</span> weiter<span style="color: rgb(102, 204, 102);" class="br0">(</span><span style="color: rgb(102, 204, 102);" class="br0">)</span> <span style="color: rgb(102, 204, 102);" class="br0">{</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Eine Meldung anzeigen (optional)</span>
alert<span style="color: rgb(102, 204, 102);" class="br0">(</span><span style="color: rgb(255, 0, 0);" class="st0">"Die Zeit ist vorbei."</span><span style="color: rgb(102, 204, 102);" class="br0">)</span><span style="color: rgb(102, 204, 102);" class="sy0">;</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Den Teilnehmer zur nächsten Seite weiterleiten</span>
SoSciTools.<span style="color: rgb(0, 102, 0);" class="me1">submitPage</span><span style="color: rgb(102, 204, 102);" class="br0">(</span><span style="color: rgb(102, 204, 102);" class="br0">)</span><span style="color: rgb(102, 204, 102);" class="sy0">;</span>
<span style="color: rgb(102, 204, 102);" class="br0">}</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Initialisierung der Weiterleitung</span>
SoSciTools.<span style="color: rgb(0, 102, 0);" class="me1">attachEvent</span><span style="color: rgb(102, 204, 102);" class="br0">(</span>window<span style="color: rgb(102, 204, 102);" class="sy0">,</span> <span style="color: rgb(255, 0, 0);" class="st0">"load"</span><span style="color: rgb(102, 204, 102);" class="sy0">,</span> <span style="color: rgb(177, 177, 0);" class="kw1">function</span><span style="color: rgb(102, 204, 102);" class="br0">(</span>evt<span style="color: rgb(102, 204, 102);" class="br0">)</span> <span style="color: rgb(102, 204, 102);" class="br0">{</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Weiter-Knopf ausblenden (optional)</span>
SoSciTools.<span style="color: rgb(0, 102, 0);" class="me1">submitButtonsHide</span><span style="color: rgb(102, 204, 102);" class="br0">(</span><span style="color: rgb(102, 204, 102);" class="br0">)</span><span style="color: rgb(102, 204, 102);" class="sy0">;</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// Timer für automatische Weiterleitung starten</span>
window.<span style="color: rgb(0, 102, 0);" class="me1">setTimeout</span><span style="color: rgb(102, 204, 102);" class="br0">(</span>weiter<span style="color: rgb(102, 204, 102);" class="sy0">,</span> <span style="color: rgb(102, 204, 102);" class="sy0">%</span>remain<span style="color: rgb(102, 204, 102);" class="sy0">%</span> <span style="color: rgb(102, 204, 102);" class="sy0">*</span> <span style="color: rgb(204, 102, 204);" class="nu0">1000</span><span style="color: rgb(102, 204, 102);" class="br0">)</span><span style="color: rgb(102, 204, 102);" class="sy0">;</span>
<span style="color: rgb(102, 204, 102);" class="br0">}</span><span style="color: rgb(102, 204, 102);" class="br0">)</span><span style="color: rgb(102, 204, 102);" class="sy0">;</span>
<span style="color: rgb(128, 128, 128); font-style: italic;" class="co1">// --></span>
<span style="color: rgb(102, 204, 102);" class="sy0"></</span>script<span style="color: rgb(102, 204, 102);" class="sy0">></span></pre>