changing text color after mouseclick


Author
Message
elkec7
elkec7
Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)
Group: Forum Members
Posts: 6, Visits: 13
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>



Dave
Dave
Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)Supreme Being (855K reputation)
Group: Administrators
Posts: 10K, Visits: 59K
> however 'woord1' also appears in the left above corner but I don't need that.

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

elkec7
elkec7
Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)Partner Member (724 reputation)
Group: Forum Members
Posts: 6, Visits: 13
yep that was it :).
thanks


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search