[Typo3] Random Background Image
Michiel Roos
systeembeheer at meyson.nl
Tue Sep 20 09:48:03 CEST 2005
In <mailman.1.1127172884.21618.typo3-english at lists.netfielders.de>
Kristian Wind wrote:
> Hello all,
>
> Is it possible to have Typo3 select random background images to a TD
> in the template from a folder in Fileadmin - and if so how?
Checkout cc_random_image it will load a random image from a fileadmin
folder. More precisely, it will push the image 'path' to you.
To get a random image in a td, you could define the class in the head
like so:
<style>
.outside {
background-image: url('<!--###
randomTitlebarImage###--> <!--###randomTitlebarImage###-->');
background-repeat: no-repeat;
width: 223px;
}
</style>
Cheers,
Michiel
More information about the TYPO3-english
mailing list