Hello, if you want your images randomized (and effects) you can use this little PHP script.
Just replace default config.xml in HTML/JS with let's say cu3er.php (or whatever you name it).
Also you need to edit $dir to match one on your host.
eg. http://repro.babilon.ba/cu3er.php & http://repro.babilon.ba
http://webarto.com/32/php-cu3er-xml-configuration
<?
/**
* CU3ER PHP XML Configuration
* @author webarto.com
* @copyright 2010
*/
$slides = "";
$dir = "cu3er";
function effect(){
srand((double)microtime()*1234567);
$effects = array(
'num="3" slicing="vertical" direction="down" cube_color="0xFFFFFF"',
'num="4" direction="right" shader="flat" cube_color="0xFFFFFF"',
'num="6" slicing="vertical" direction="up" shader="flat" delay="0.05" z_multiplier="4" cube_color="0xFFFFFF"',
'num="4" direction="right" shader="phong" cube_color="0xFFFFFF"');
return $effects[mt_rand(0,count($effects)-1)];
}
$folder = scandir($dir);
foreach($folder as $file){
if(strpos(strtolower($file),".jpg")>0){
$slides.= '<slide><url>/'.$dir.'/'.$file.'</url></slide><transition '.effect().' />'."\n";
}
}
header("Content-Type: text/xml");
echo('<?xml version="1.0" encoding="utf-8" ?>
<cu3er>
<settings>
<auto_play>
<defaults symbol="circular" time="3" />
<tweenOver tint="0xFFFFFF" scaleX="1.1" scaleY="1.1"/>
<tweenOut tint="0xFFFFFF"/>
</auto_play>
<prev_button>
<defaults round_corners="5,5,5,5"/>
<tweenOver tint="0xFFFFFF" scaleX="1.1" scaleY="1.1"/>
<tweenOut tint="0x000000" />
</prev_button>
<prev_symbol>
<tweenOver tint="0x000000" />
</prev_symbol>
<next_button>
<defaults round_corners="5,5,5,5"/>
<tweenOver tint="0xFFFFFF" scaleX="1.1" scaleY="1.1"/>
<tweenOut tint="0x000000" />
</next_button>
<next_symbol>
<tweenOver tint="0x000000" />
</next_symbol>
</settings>
<slides>
'.$slides.'
</slides>
</cu3er>');
?>
