Millisecond Online Community

Background Screen Color and Completion Status Bar

rated by 0 users
This post has 7 Replies | 2 Followers

Not Ranked
Posts 3
Zach Kalinoski Posted: 02-15-2012 9:46 AM

Hi all,

I am looking to make the background screen color to be dark (black or dark blue) with white text.  Does anyone know the best way to write this into a script?  I've attempted using the desktop help function as well as searching the forums with no definitive luck.

In addition, I wish to add a status bar at the top or bottom of the survey pages to allow respondents to assess their progress.  Does Inquisit have this function?  If so, what is the best way to write a script for this?

Much thanks.

Zach

Top 10 Contributor
Posts 3,377

Zach Kalinoski:
I am looking to make the background screen color to be dark (black or dark blue) with white text.

See the documentation for the <defaults> element, particularly the /screencolor, /txcolor and /txbgcolor attributes. /screencolor also applies to <block> and <survey>. A word of warning: Dark background / light text will not work properly for most survey question formats (see https://www.millisecond.com/community/forums/p/845/2021.aspx#2021 for details).

Zach Kalinoski:
In addition, I wish to add a status bar at the top or bottom of the survey pages to allow respondents to assess their progress.  Does Inquisit have this function?  If so, what is the best way to write a script for this?

You set up a rectangular <shape> element, dynamically alter its size via conditional logic (using the /ontrialbegin attribute in your <surveypage> elements) and display the shape via the pages' /stimulusframes attribute.

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Not Ranked
Posts 3

Thanks Dave.  I was able to change the background color of the screen with no issues and everything shows up on my end.  The link you provided helped a lot.  There is still a white rectangle around likert 1-7 scale for my items.  Any way to get rid of that?

I have yet to try your solution to my second issue, but plan on getting to it next.

Another question I have revolves around the back button.  I have been able to make it work for some of my files that use surveypage.  However, some of my other survey items are using <expt> and <block> functions.  Do back buttons not work for these types?  Is there a better solution for being able to include these?

Thanks.

Zach

Top 10 Contributor
Posts 3,377

Zach Kalinoski:
Thanks Dave.  I was able to change the background color of the screen with no issues and everything shows up on my end.  The link you provided helped a lot.  There is still a white rectangle around likert 1-7 scale for my items.  Any way to get rid of that?

No.

Zach Kalinoski:
<expt> and <block> functions.  Do back buttons not work for these types?

Correct. Back navigation is only possible when using <survey>, not when using <block>. However, note https://www.millisecond.com/community/forums/p/1063/2849.aspx#2849.

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Not Ranked
Posts 3

Hi Dave,

Instead of using conditional logic, I have made a few jpeg images that represent where individuals are at in the study (i.e., 10% Complete).  I'd like to display these images on the instruction pages.  Do you happen to know the best way to display these using the <picture> element, possibly within the <page> or <instruct> element?

Thanks!

Top 10 Contributor
Posts 3,377

You can't have pictures, etc. on <page> elements. Either use standard <trial> elements to display instructions or use <htmlpage>.

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Not Ranked
Posts 2

Was anyone able to correctly set up a status/progress bar at the bottom of the page? I would like to let my subjects know where they are in the survey battery. I'm new to inquisit and while I understand how it could be done using <shape>, /ontrailbegin and /stimulusframes my knowledge of the latter two attributes is still in its naissance. 

Top 10 Contributor
Posts 3,377

Here's a basic example you can use to build upon:

<values>
/ npages = 3
/ currentpage = 0
</values>

<survey mysurvey>
/ pages = [1=pg01; 2=pg02; 3=pg03]
</survey>

<surveypage pg01>
/ stimulusframes = [1=progressbar]
/ ontrialbegin = [values.currentpage=1]
/ ontrialbegin = [shape.progressbar.width=80%*(values.currentpage/values.npages)]
/ caption = "Page 1"
</surveypage>

<surveypage pg02>
/ stimulusframes = [1=progressbar]
/ ontrialbegin = [values.currentpage=2]
/ ontrialbegin = [shape.progressbar.width=80%*(values.currentpage/values.npages)]
/ caption = "Page 2"
</surveypage>

<surveypage pg03>
/ stimulusframes = [1=progressbar]
/ ontrialbegin = [values.currentpage=3]
/ ontrialbegin = [shape.progressbar.width=80%*(values.currentpage/values.npages)]
/ caption = "Page 3"
</surveypage>

<shape progressbar>
/ shape = rectangle
/ color = (red)
/ position = (10%,80%)
/ halign = left
/ size = (0%, 5%)
</shape>

Regards,

~Dave

"To understand recursion, you must first understand recursion."  - Unknown Zen Master

Page 1 of 1 (8 items) | RSS
Powered by Community Server (Non-Commercial Edition), by Telligent Systems