Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 6 of 6

Thread: 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
    Join Date
    Nov 2005
    Posts
    3,328
    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:

    <head><meta http-equiv="refresh" content="2;url=blank.htm"></head>
    <img src="mypic.jpg">
    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
    Last edited by jarvis24; 03-30-2010 at 01:25 AM.

  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?
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4

    Figured it out!

    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
    Join Date
    Nov 2005
    Posts
    3,328
    Thanks Fade, for the feedback and for the tip regarding placing the animated gif in the backvideo field!

  6. #6
    Join Date
    Jun 2010
    Posts
    1
    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
    Last edited by mighty; 03-21-2013 at 06:26 AM.

Similar Threads

  1. Scroll question text for scale item
    By jzadra in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 03-23-2010, 02:44 PM
  2. How to control video within a scale response item?
    By sscielzo in forum MediaLab Older Versions: How Do I...
    Replies: 2
    Last Post: 11-06-2009, 12:20 AM
  3. Using top parameter value on scale response causes all but one buttons to disappear
    By mentokthemindtaker in forum MediaLab Older Versions: Troubleshooting
    Replies: 2
    Last Post: 09-10-2009, 07:35 AM
  4. How to set up the duration of background image (.jpg not htlm) with scale response
    By imruoxue in forum MediaLab Older Versions: General Questions
    Replies: 1
    Last Post: 06-10-2008, 03:27 PM
  5. custom item with background image
    By rkozink in forum MediaLab Older Versions: How Do I...
    Replies: 1
    Last Post: 05-04-2006, 01:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •