I made a random image rotator, it's quite easy. This is not a hack, just an implementation.
It work sthe same (almost) as the {RANDOM:folder} but because I wanted it as a CSS background-image I had to do the following: I put in the HEADER (in templates of backend) the following code:
Code: Select all
<style type="text/css" media="screen">
#info {
background-image: url(/picture/footer/[PHP] echo ("footer".rand(0,15).".jpg")[/PHP]) ;
}
</style>
2) You need to put 15 images (or change 0,15)
3) you need to name them footer1.jpg, footer2.jpg, etc. As long as it is ' footer NUMBER . jpg ' (if you want to use .gif, just change jpg with gif in the [PHP] and put only .gif images in your folder
4) The background image applies to the div #info, you can of course use your own css names, just change #info to #yourname.
You can see it in the header at http://www.exil.be/index.php?fr_history (WIP: I used the same images in footer and header, but in header it is the PHP random and in the footer the replacement tag {RANDOM:picture/footer} )
Voilà, maybe you can use it too, have fun.
Cheers