Skip to main content
Known Participant
July 20, 2011
Answered

Can you change the background image to a variable?

  • July 20, 2011
  • 2 replies
  • 466 views

I'll be honest, I'm not really expecting a yes answer to this, but I figured I might as well see if I can save myself a little bit of work.

I'm creating a corporate training e-learning module that has to show slightly different content depending on the user's region (there are three). At the moment, I have the captions and click boxes use conditional actions to figure out which region the user chose, but as the system capture utilises the region-specific sites with different flags etc. I was wondering: is it possible for me to change the background image of a slide to the value of a variable, or will I have to just make three separate slides for the different pages?

    This topic has been closed for replies.
    Correct answer Lilybiri

    Hello,

    You will not be able to change the background image. What should be possible, but it will increase the size of your file considerably is to put 3 images with the dimensions of the slide and on entering the slide show the appropriate image based on the chosen variable. I do not know if everything has to change in the background, or perhaps only some regions? In that case try to have the to be interchanged image as small as possible.

    Lilybiri

    2 replies

    Lilybiri
    LilybiriCorrect answer
    Legend
    July 20, 2011

    Hello,

    You will not be able to change the background image. What should be possible, but it will increase the size of your file considerably is to put 3 images with the dimensions of the slide and on entering the slide show the appropriate image based on the chosen variable. I do not know if everything has to change in the background, or perhaps only some regions? In that case try to have the to be interchanged image as small as possible.

    Lilybiri

    RodWard
    Community Expert
    Community Expert
    July 20, 2011

    It's quite possible to have a variable that is set at the beginning of the project (perhaps by asking the user to specify their region) and then SHOW particular images on each slide as needed by checking this variable OnSlideEnter.  It requires that you have all three images onthe slides all hidden to begin with.  You won't actually be changing the background image of the slide, but selectively showing an image that sits in one of the layers directly above the background.

    Does that make sense?

    TrihanAuthor
    Known Participant
    July 20, 2011

    Yeah, that's actually the answer I came up with not long after posting the question, Rod. Thanks. Wasn't sure how well it would work with the size of the images (might have lagged etc.) but it seems to have worked like a charm!

    Edit: Ack, sorry Rod. I meant to choose your answer as correct but didn't notice that Lilybiri had posted after you. Sorry!

    Message was edited by: Trihan

    RodWard
    Community Expert
    Community Expert
    July 20, 2011

    No problem.

    Just be aware that if you are reusing an image from the Library on a number of slides it won't add anything to your filesize whether you use it once or 100 times.