Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Grin 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. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    Re: one button to change back ground pics

    Run time, sorry.

    Everyone dance!

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

  5. #5
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    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?

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    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

  7. #7
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    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 ]]

  8. #8
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    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.

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728

    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 ]]

Posting Permissions

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