Announcement

Collapse
No announcement yet.

one button to change back ground pics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • one button to change back ground pics

    I know this has past through here before but... What I want to do is change the background pics with a press of one button. I have ten pics to use. Where did I see this?

  • #2
    Re: one button to change back ground pics

    You want to change the background pic of your page at design time or run time?

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: one button to change back ground pics

      Run time, sorry.

      Everyone dance!

      Comment


      • #4
        Re: one button to change back ground pics

        No way I know of to do that other than using an HTML or Flash object... You could always create ten pages each with a different background and then just switch between them at runtime I guess...

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: one button to change back ground pics

          Poop! Thats the way I had it before... ok thanks Corey. Oh b.t.w. When can I get a set of your CDs?

          Comment


          • #6
            Re: one button to change back ground pics

            At this point I can't make any predictions. I probably never should have been talking about it in the first place, my bad, lesson learned... [img]/ubbthreads/images/icons/smile.gif[/img]

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: one button to change back ground pics

              You could also use a bunch of different image objects, stretched to the same size as the page, and just show/hide them appropriately.
              --[[ Indigo Rose Software Developer ]]

              Comment


              • #8
                Re: one button to change back ground pics

                See Lorne thats what I thought... But I wasn't sure how to employ that into one button.

                Comment


                • #9
                  Re: one button to change back ground pics

                  Just use a variable as a counter -- each time the user clicks on the button, it increases by 1. When you get to 10, set it back to 0.

                  Then add a bunch of IF statements to check the value in that counter, and show/hide the appropriate images.

                  Another way to do it would be to name the image objects with numbers, like bg1, bg2, bg3, etc. and then just use the counter variable in the name of the object you want to show: i.e., hide all of the image objects, and then show the object named bg%i% (assuming your counter was called %i% -- you can call it anything you want, of course).

                  Jumping to 10 different pages would work fine, too...it just means having more pages to maintain.
                  --[[ Indigo Rose Software Developer ]]

                  Comment

                  Working...
                  X