[Typo3] Random Background Image
Kristian Wind
kw at hovsa.dk
Tue Sep 20 10:15:22 CEST 2005
Hi Michiel!
Thanks! But what do I write in the TD?
Kristian
Michiel Roos wrote:
> 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