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?
Announcement
Collapse
No announcement yet.
one button to change back ground pics
Collapse
X
-
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
-
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
-
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
-
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
Comment