Creating experiment stimulus - unoccluding the content of the stimulus #2610
Unanswered
NilosmitaBanerjee1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am a beginner in jsPsych and am trying to build an experimental task in which there will 3 boxes within which there will be a bar with varying values. The boxes should be occluded and when the participant hovers their mouse over the boxes with their mouse, the boxes should get un-occluded and the participant should be able to see the contents of the box (i.e., the bar) - I can see that the serial-reaction-time-mouse allows us to make a grid of boxes i.e., squares and we can use the mouse to click on each of the boxes but, I don't know how to get the boxes to do the occluding and un-occluding and how to make the bars visible upon un-occlusion.
Thank you for the help in advance!
Example of the code I have tried so far:
<script src = "/Users/akira/Desktop/jspsych/jspsych/jspsych.js"></script> <script src = "/Users/akira/Desktop/jspsych/jspsych/plugins/jspsych-html-keyboard-response.js"></script> <script src = "/Users/akira/Desktop/jsPsych/jspsych/plugins/jspsych-image-button-response.js"></script> <script src = "/Users/akira/Desktop/jsPsych/jspsych/plugins/jspsych-serial-reaction-time-mouse.js"></script> <script> var welcome_trial = { type: 'html-keyboard-response', stimulus: 'Welcome to my experiment' }Beta Was this translation helpful? Give feedback.
All reactions