Group: Forum Members
Posts: 36,
Visits: 146
|
Hi again, I have a general strategy question. I'd like to show an image from a randomized set and have two options of words/phrases to click on, where the positioning will also be randomized. I've tried a number of different approaches and have come up short. I have managed to show the image and have randomized positioning of the stimuli (thanks to an earlier forum post), but it's unclear to me what the best method is for actually click on the words so that participants KNOW they've selected it. Ideally, the textcolor would change (I tried the code in the forum post http://www.millisecond.com/forums/Topic17402.aspx but it didn't seem to work for me). I couldn't figure out how to do it as a radiobutton, for instance. The way the code is now, the image appears with the two words, and then nothing really seems to happen if I click. Here is the code: <block alcohol> / trials = [1-10 = alcohol] </block> <picture alcohol> / items = ("1L_1.jpg","1L_2.jpg","1L_3. jpg","1L_4.jpg","1L_5.jpg","1L_6.jpg","1L_7.jpg","1L_8.jpg","1L_9.jpg","1L_10.jpg") / select = replacenorepeat / size = (80%, 80%) </picture>
<trial alcohol> / stimulusframes = [1=alcohol, alc_categories1, alc_categories2] / showmousecursor = true / validresponse = (alc_categories1, alc_categories2) </trial>
<text alc_categories1> / items = ("Non-alcoholic beverage","Food","Non-food object") / select = replace / vposition = 50% / hposition = counter.type1pos.selectedvalue / txcolor = black </text>
<text alc_categories2> / items = ("Alcoholic beverage") / vposition = 50% / hposition = counter.type2pos.selectedvalue / txcolor = black </text>
<counter type1pos> / items = (20%,80%) / select = noreplace </counter>
<counter type2pos> / items = (20%,80%) / not = (type1pos) / select = noreplace / selectionrate = always </counter>
Any feedback is greatly appreciated - especially if there's a better/more efficient way to do it!
|