PDA

View Full Version : Random background images?



ronwilliams
02-25-2010, 07:14 AM
Is it possible to have autoplay randomize background images for a page?

Thanks

nico210
02-25-2010, 07:43 AM
Is it possible to have autoplay randomize background images for a page?

Thanks

Here we go dude :



Imgs ={"sunset.jpg","sky.png","kid.jpg"}
Random = Math.Random(1, Table.Count(Imgs));


Image.Load("Wallpaper", "AutoPlay\\Images\\"..Imgs[Random]);



Place all your images in your Autoplay Images folder and list them in the "Imgs" table. Put this code in "On Preload".