﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » instruction settings for web experiments</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Wed, 09 Sep 2026 16:05:59 GMT</lastBuildDate><ttl>20</ttl><item><title>instruction settings for web experiments</title><link>https://forums.millisecond.com/Topic20887.aspx</link><description>I am writing a script for a web experiment, so it will be run on many different computers and screens. While testing, I noticed that the instructions (using preinstructions) are not displayed well on a bigger screen the one I usually work with. Is there a way to set the fontsize in a way that is dependent on the display size, so that it will always be displayed right?&lt;br/&gt;&lt;br/&gt;my current settings:&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt; / fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt; / screencolor = (255, 255, 255)&lt;br/&gt; / nextkey = (" ")&lt;br/&gt; / nextlabel = " Press (Space) for next page"&lt;br/&gt; / prevlabel = "Press (Back) previous page"&lt;br/&gt; &amp;lt;/instruct&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 27 Feb 2017 07:54:39 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: instruction settings for web experiments</title><link>https://forums.millisecond.com/Topic20893.aspx</link><description>&lt;div data-id="20892" class="if-quote-wrapper" unselectable="on" data-guid="1488210552971"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20892" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="20892" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="20892" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Monday, February 27, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20892"&gt;&lt;div class="if-quote-message-margin"&gt;Thank you Dave (yes this helped). I discovered another problem with the different screen sizes, so I would like to ask a follow-up question.&lt;br/&gt;I have one radiobuttons question where people should see a text and picture as the answer categories. I couldn't figure out how to add a picture to the radiobutton, so I added pictures and placed them next to the answer options. However, with different screens, the pictures will not be displayed next to the answer options. So, after all, is there a way to include pictures as options for the radiobuttens element?&lt;br/&gt;&lt;br/&gt;This is the code now:&lt;br/&gt;&amp;lt;radiobuttons nationality&amp;gt;&lt;br/&gt;/ caption = "What is your nationality?"&lt;br/&gt;/ options = ("~nGerman~n", "~nPortuguese~n")&lt;br/&gt;/ optionvalues = ("Germany", "Portugal", "none")&lt;br/&gt;/ other = "Other"&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture GermanFlagRadioquestion&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Germany.png")&lt;br/&gt;/ position = (24, 63)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PortugalFlagRadioquestion&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Portugal.png")&lt;br/&gt;/ position = (24, 75)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage iniNat&amp;gt;&lt;br/&gt;/ caption = " During the game, you will always see the initials and nationality of the other Player, as well as your own. Before starting the game, please answer the following questions:"&lt;br/&gt;/ fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 0)&lt;br/&gt;/ questions = [1=initial1; 2=initial2; 3=nationality] &lt;br/&gt;/ stimulusframes = [1 = GermanFlagRadioquestion; 2= PortugalFlagRadioquestion]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block initialsNation&amp;gt;&lt;br/&gt;/ trials = [1=iniNat]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20892"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&amp;gt; is there a way to include pictures as options for the radiobuttens element?&lt;br/&gt;&lt;br/&gt;No, not really. You should set up &amp;lt;image&amp;gt; elements, specify their /imagesize and /position attributes so that they line up with the &amp;lt;radiobuttons&amp;gt; options. Display the images via the pages /questions attribute. In addition, you may want to set /orientation = horizontalequal in the &amp;lt;radiobuttons&amp;gt; so that options occupy an equal amount of space. Finally, you can use the &amp;lt;defaults&amp;gt; element's /canvasaspectratio attribute to achieve more consistent results across different screen ratios by restricting the drawing surface to a fixed ratio, e.g.&lt;br/&gt;&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ canvasaspectratio = (4,3)&lt;br/&gt;....&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 27 Feb 2017 07:54:39 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: instruction settings for web experiments</title><link>https://forums.millisecond.com/Topic20892.aspx</link><description>Thank you Dave (yes this helped). I discovered another problem with the different screen sizes, so I would like to ask a follow-up question.&lt;br/&gt;I have one radiobuttons question where people should see a text and picture as the answer categories. I couldn't figure out how to add a picture to the radiobutton, so I added pictures and placed them next to the answer options. However, with different screens, the pictures will not be displayed next to the answer options. So, after all, is there a way to include pictures as options for the radiobuttens element?&lt;br/&gt;&lt;br/&gt;This is the code now:&lt;br/&gt;&amp;lt;radiobuttons nationality&amp;gt;&lt;br/&gt;/ caption = "What is your nationality?"&lt;br/&gt;/ options = ("~nGerman~n", "~nPortuguese~n")&lt;br/&gt;/ optionvalues = ("Germany", "Portugal", "none")&lt;br/&gt;/ other = "Other"&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture GermanFlagRadioquestion&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Germany.png")&lt;br/&gt;/ position = (24, 63)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;picture PortugalFlagRadioquestion&amp;gt;&lt;br/&gt;/ items = ("stimulusMaterial/Flag_of_Portugal.png")&lt;br/&gt;/ position = (24, 75)&lt;br/&gt;/ size = (9%, 9%)&lt;br/&gt;&amp;lt;/picture&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage iniNat&amp;gt;&lt;br/&gt;/ caption = " During the game, you will always see the initials and nationality of the other Player, as well as your own. Before starting the game, please answer the following questions:"&lt;br/&gt;/ fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 0)&lt;br/&gt;/ questions = [1=initial1; 2=initial2; 3=nationality] &lt;br/&gt;/ stimulusframes = [1 = GermanFlagRadioquestion; 2= PortugalFlagRadioquestion]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block initialsNation&amp;gt;&lt;br/&gt;/ trials = [1=iniNat]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 27 Feb 2017 01:17:57 GMT</pubDate><dc:creator>JuliaNo</dc:creator></item><item><title>RE: instruction settings for web experiments</title><link>https://forums.millisecond.com/Topic20888.aspx</link><description>&lt;div data-id="20887" class="if-quote-wrapper" unselectable="on" data-guid="1488157005519"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="20887" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="20887" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="20887" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;JuliaNo - Sunday, February 26, 2017&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-20887"&gt;&lt;div class="if-quote-message-margin"&gt;I am writing a script for a web experiment, so it will be run on many different computers and screens. While testing, I noticed that the instructions (using preinstructions) are not displayed well on a bigger screen the one I usually work with. Is there a way to set the fontsize in a way that is dependent on the display size, so that it will always be displayed right?&lt;br/&gt;&lt;br/&gt;my current settings:&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt; / fontstyle = ("Calibri", 2.8%, true, false, false, false, 5, 1)&lt;br/&gt; / screencolor = (255, 255, 255)&lt;br/&gt; / nextkey = (" ")&lt;br/&gt; / nextlabel = " Press (Space) for next page"&lt;br/&gt; / prevlabel = "Press (Back) previous page"&lt;br/&gt; &amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="20887"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;The fontsize is already proportional -- you've specified it in percentages. What you'll probably want to do in addition is to specify a proportional size for the instruction window as well via the /windowsize attribute:&lt;br/&gt;&lt;br/&gt;&amp;lt;instruct&amp;gt;&lt;br/&gt;...&lt;br/&gt;/ windowsize = (90%, 90%)&lt;br/&gt;&amp;lt;/instruct&amp;gt;&lt;br/&gt;&lt;br/&gt;Hope this helps.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Sun, 26 Feb 2017 16:59:05 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>