Skip to content

Add image under text in instruction #824

Answered by becky-gilbert
jingxu9 asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm. I've just tried this with the following code in Chrome, and I couldn't reproduce the problem:

var instruction = { 
  type:'instructions', 
  pages:['text','another text' +'<image src="jspsych/examples/img/1.gif"></img>'], 
  show_clickable_nav:true
}
jsPsych.init({
  timeline: [instruction],
  preload_images: ['jspsych/examples/img/1.gif']
})

Can you confirm that this is what your code looks like, and that the image is definitely preloading for you?

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jingxu9
Comment options

@jingxu9
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jingxu9
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jodeleeuw
Comment options

@jingxu9
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants