Guter Punkt bzgl flash...
Das hier ist der gesamte Code
// RTRonline - Einstellungen
$films = array(
'plus.ogg',
'minus.ogg',
'neut.ogg'
);
shuffle($films);
registerVariable('films');
$film = $films[0];
$inputData = 'RT01_01';
$inputInfo = 'RT01_02';
$inputName = 'RT01_03';
put('RT01_03', $film);
// Optionen fuer RTRonline
$curve = false; // Kurve anzeigen
$mute = false; // Stumm-Knopf anzeigen
$intro = true; // Einf¸hrungsseite zeigen
$time = true; // Zeit anzeigen
$lang = 'en'; // Sprache (de/en)
$nonstop = true; // Steuerung ausblenden
// Extrema (Zeilenumbruch mit \n)
$textPos = 'very\npositive';
$textNeg = 'very\nnegative';
// Vorsicht: Der Intro-Text unterstützt nur wenige HTML-Tags!
$textIntro = '
<p>Now we will show you the actual clips.</p>
<p class="spacing"></p>
<p>Please rate your current feelings using the slider here on the right hand side, as you just practiced.</p>
<p class="spacing"></p>
<p>As a reminder: the TOP of the slider indicates that you feel very POSITIVE.</p>
<p>The BOTTOM of the slider indicates that you feel very NEGATIVE.</p>
<p class="spacing"></p>
<p>It is important to CONTINUOUSLY UPDATE your ratings as you view the film, based on your feelings at each moment.</p>
<p>Please focus on your feelings and report them as closely as possible.</p>
<p class="spacing"></p>
<p>REMEMBER THAT YOU CONTINUE RATING YOUR CURRENT FEELINGS EVEN WHEN THE MOVIE STOPPED UNTIL YOU SEE THE NEXT SCREEN.</p>
';
$textIntro = str_replace("\r\n", '', $textIntro);
$textIntro = str_replace("\n", '', $textIntro);
$textIntro = str_replace("\r", '', $textIntro);
$textIntro = str_replace('"', '"', $textIntro);
$textIntro = str_replace(',', ',', $textIntro);
$textPos = str_replace('"', '"', $textPos);
$textNeg = str_replace('"', '"', $textNeg);
// RTRonline - Einbindung
html('
<script language="JavaScript" type="text/javascript">
<!--
va'.'r rtrSettings = n'.'ew Object();
rtrSettings["film"] = "'.$film.'";
rtrSettings["curve"] = '.($curve ? 'true' : 'false').';
rtrSettings["mute"] = '.($mute ? 'true' : 'false').';
rtrSettings["intro"] = '.($intro ? 'true' : 'false').';
rtrSettings["lang"] = "'.$lang.'";
rtrSettings["nonstop"] = '.($nonstop ? 'true' : 'false').';
rtrSettings["ctlpos"] = false; // Mit Mausbewegung statt Ber¸hrung bewerten
rtrSettings["res"] = 5; // Samplingrate [Hz]
rtrSettings["style"] = "good"; // Regler-Stil (good|agree)
rtrSettings["time"] = '.($time ? 'true' : 'false').';
rtrSettings["inputData"] = "'.$inputData.'";
rtrSettings["inputInfo"] = "'.$inputInfo.'";
rtrSettings["width"] = 780; // Original 780 x 550
rtrSettings["height"] = Math.round(0.705 * rtrSettings["width"]); // Correct relation
rtrSettings["text"] = "'.$textIntro.'";
if (rtrSettings["text"] == "") rtrSettings["text"] = false;
rtrSettings["pos"] = "'.$textPos.'";
if (rtrSettings["pos"] == "") rtrSettings["pos"] = true;
rtrSettings["neg"] = "'.$textNeg.'";
if (rtrSettings["neg"] == "") rtrSettings["neg"] = true;
// -->
</script>
');
// Eigentliches Skript fuer die Einbindung
text('js_rtr');
// Weiter-Knopf voruebergehend ausblenden
buttonCode();