Millisecond Forums

changing text color after mouseclick

https://forums.millisecond.com/Topic17402.aspx

By elkec7 - 10/14/2015

dear,
I need to read in a text in inquisit. Respondents need to read the text and need to click on certain words in the text. if they click on the word, the word need to change from black to red so that respondents know that it has been highlighted. At the moment I have this script , where the word hello changes after clicking on it, however 'woord1' also appears in the left above corner but I don't need that. can someone help?

<text woord1>
/items = ("hallo")
/txcolor = black
</text>

<trial mytrial>
/ stimulustimes=[0=woord1, testtest]
/ ontrialend=[if (trial.mytrial.response == "woord1") text.woord1.textcolor = red]
/branch=[if(trial.mytrial.correct == 1 ) trial.mytrial]
/validresponse = (woord1)
/correctresponse = (woord1)
/ inputdevice = mouse
</trial>


<block test>
/trials = [1=mytrial]
</block>

<text testtest>
/items = ("<%trial.mytrial.response%>")
/txcolor = black
/position = (10,10)
</text>


By Dave - 10/14/2015

> however 'woord1' also appears in the left above corner but I don't need that.

Remove testtest from the <trial>'s /stimulustimes.