Group: Forum Members
Posts: 11,
Visits: 71
|
Hello,
I'm trying to create a custom likert-style question (Self-assessment Manikin) where I can record 1-9 after a picture stimulus is clicked. I have the trial and pictures lined up, but I can't figure out how to record the response as an integer upon clicking an appropriate picture.
Bonus: Would it be possible to change the picture (e.g. grey background instead of white) upon mouseover, to indicate to the respondent what option s/he is selecting?
My code so far:
<trial SAMA1> / stimulustimes = [0=SAMAinstruct, SAMA1, SAMA2, SAMA3, SAMA4, SAMA5, SAMA6, SAMA7, SAMA8, SAMA9] / validresponse = (SAMA1, SAMA2, SAMA3, SAMA4, SAMA5, SAMA6, SAMA7, SAMA8, SAMA9) / inputdevice = mouse </trial>
<text SAMAinstruct> / items = ("Rate your Arousal") / size = (500px, 200px) / fontstyle = ("Verdana", 14pt) / position = (50%,40%) </text> <picture SAMA1> /items = ("SAM-A-1.png") /position = (10%,50%) </picture> <picture SAMA2> /items = ("SAM-A-2.png") /position = (20%,50%) </picture> <picture SAMA3> /items = ("SAM-A-3.png") /position = (30%,50%) </picture> <picture SAMA4> /items = ("SAM-A-4.png") /position = (40%,50%) </picture> <picture SAMA5> /items = ("SAM-A-5.png") /position = (50%,50%) </picture> <picture SAMA6> /items = ("SAM-A-6.png") /position = (60%,50%) </picture> <picture SAMA7> /items = ("SAM-A-7.png") /position = (70%,50%) </picture> <picture SAMA8> /items = ("SAM-A-8.png") /position = (80%,50%) </picture> <picture SAMA9> /items = ("SAM-A-9.png") /position = (90%,50%)
|