Search the Legacy Support Archive (up to v2020)
  1. Read-only archive (2005–2024). Posting is closed. Need help with MediaLab or DirectRT 2027? Email service@empirisoft.com.

    All words · “exact phrase” · -leave out

    Advanced search

Having a timed background picture disappear while on a scale item

  1. #1

    Having a timed background picture disappear while on a scale item

    Hi Everyone,

    I am trying to have both a picture and scale appear on a screen at the same time, and then have the picture disappear after 2 seconds, but keep the scale up still. Basically, I am working on a study where a participant has to make a decision based on the picture, but only has two seconds to actually view the picture. During those two seconds, they can make a decision, and after the picture disappears, they can still answer the question.

    I know that there is a way to do this with two slides, and will likely default to this method, but is there any way to do this?

  2. #2
    jarvis24 Blair Jarvis, Administrator
    There is no built in function for this but I can offer a couple of work-arounds. First, you could convert the image to an animated gif file where the image turns to a blank image after the desired time.

    Second you could create and embed a simple HTML file that displays the image in the background of the scale item screen (see background in the users guide for more detail). The trick would be to add an automatic redirect command to the file such that it would proceed to a blank page after n seconds.

    The code to do that in an HTML file might look something like this:



    Say you save this as mypic.htm. Create another blank file called blank.htm and keep it in the same folder. With this code, the picture would disappear after 2 seconds but would leave the scale response in tact.

    In your scale response item, you would enter something like "mypic.htm (t100,l500,w300,h600)" in the background field. You would adjust the parameters for top, left, width and left according to the size of your image and where you want it to appear.

    You could also play with the html file adding code to remove any margins or to make it's background color match that of your MediaLab background.

    Would be happy to hear how it goes, or even to see a posted sample--or let me know if you need a hand in creating this.

    See also:
    http://www.empirisoft.com/support/showthread.php?t=1322
    http://www.empirisoft.com/support/showthread.php?t=702

  3. #3
    Hi Blair,

    I followed the animated gif route as it seemed easiest, but it will not display the animated gif in Medialab. Please note that I print screened during a questionnaire to take the background color, and used that as my second picture. The animated gif does work by itself, but does not display properly in ML. Any suggestions?

  4. #4
    Hi Blair and others viewing this,

    I realized that with animated gifs, you need to put the file into the backvideo instead of the background. That way, the animation will work properly!

  5. #5
    jarvis24 Blair Jarvis, Administrator
    Thanks Fade, for the feedback and for the tip regarding placing the animated gif in the backvideo field!

  6. #6
    Fade thank you for your great tip of animated GIF's placement in the back video rather then background.

    This tip has apparently worked for me, cheers!!
    __________________
    http://bigsight.org/hosting_providers