Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

HTML changed text color doesn't occur during running the experiment

edited January 2017 in OpenSesame

Hi Sebastiaan,

I used a sketchpad as an instruction page. One word of the instruction is supposed have red color (the word "rot"). Therefore I used html code, which makes the word appear in red color as I view it in the control menu. However, running the experiment, the word appears in black color like the rest of the text.

This is the syntax:

set duration 0
set description "Displays stimuli"
draw textline center=0 color="#000000" font_bold=yes font_family=mono font_italic=no font_size=19 html=yes show_if=always text="Lieber Teilnehmer, liebe Teilnehmerin,<br /><br /><br />im Folgenden werden Ihnen Aufgaben präsentiert, die sich aus jeweils drei<br /><br />Aussagen zusammensetzen. Die ersten beiden Aussagen sind in schwarzer Schrift <br /><br />geschrieben und beinhalten eine Wenn-Dann Aussage und einen Fakt.<br /><br />Die dritte Aussage ist in <font color=red>rot</font> geschrieben und ist eine Schlussfolgerung.<br />" x=-480 y=-320 z_index=0
draw textline center=0 color="#000000" font_bold=yes font_family=mono font_italic=no font_size=19 html=yes show_if=always text="Ihre Aufgabe besteht darin, anzugeben, wie sicher Sie sich sind, dass man <br /><br />diese Schlussfolgerung ziehen kann. Dazu stehen Ihnen Antworten von <br /><br /><i>sehr unsicher</i> bis <i>sehr sicher</i> zur Verfügung, die Sie mit Hilfe des <br /><br />Ziffernblocks angeben. Die Nummer 1 steht hierbei für <i>sehr unsicher</i> und <br /><br />7 für <i>sehr sicher</i>. Antworten Sie bitte so, wie Sie es auch in <br /><br />Alltagssituationen machen würden." x=-480 y=-32 z_index=0
draw textline center=1 color="#6a6a6a" font_bold=yes font_family=mono font_italic=no font_size=19 html=yes show_if=always text="[Weiter mit Leertaste]" x=-32 y=320 z_index=0

Can you help make the word appear in red color during the experiment?

Best regards,
Bruno

Comments

Sign In or Register to comment.