Millisecond Forums

Background image at all times?

https://forums.millisecond.com/Topic12643.aspx

By zajac - 3/11/2014

I would like to have a logo displayed on screen at all times (top left hand corner).  I can set it as / bgstim = logo    However, this is not visible during the instruction page phase.  I note that there is no bgstim element for the 'experiment' either.  Is there a way I can get this to display at all times, including during instructions?

Ian.
By Dave - 3/11/2014

No, you cannot display background stimuli on instruction pages. The solution is to use standard <trial>, <text>, etc. elements to display your instructions instead of using <page> elements.
By zajac - 3/11/2014

That's what I thought.  It doesn't seem that you can present html pages very well during a trial as it loses the images etc that would otherwise appear.  Or have I got this wrong?  


By Dave - 3/11/2014

If any stimulus (be it <text>, <picture>, <shape> or <html>) in a <trial> overwrites stimuli displayed via a <block> element's /bgstim attribute, they'll be gone. You ought to /size and /position the stims properly to avoid that.
By zajac - 3/13/2014

Sorry Dave - what I meant was that images embedded within the HTML page/code itself don't display when <html> is presented as a trial stimulus, not that it overwrites other stimuli.   They display fine if presenting HTML as part of an instruction element though.
By Dave - 3/13/2014

Hmm, I am unable to reproduce this -- <html> renders fine for me when displayed via a <trial> (see attached screenshot and example files). Is your Inquisit installation up to date? If so, which OS are you seeing this under?
By zajac - 3/17/2014

Ok.  So it turns out that I was using the <htmlpage> element as opposed to a <html> element as per your example.  Somehow, I was able to get an htmlpage element to show during a trial and this is when the image wouldn't appear.  However, I can't seem to get a trial to run a htmlpage again as I just get the "can't find the element" warning. So, in short, the problem is solved.  Present a <html> element within a trial, specifying size etc.  A logo can then be displayed at all times.


Thanks Dave.