[TYPO3-templavoila] Sort of dynamic background with Templavoila

Dmitry Dulepov dmitry at typo3.org
Mon Feb 23 16:38:06 CET 2009


Hi!

Christian Tardif wrote:
> I'm looking for a way to allow a BE user to change the background image
> of a div (inline css: <div style="background:
> url(/fileadmin/templates/1340/images/back.jpg);">) with typoscript. The
> idea would be to allow user to select an image from the
> /fileadmin/templates/1340/images/ directory for a single page, and
> another image for another page.
> 
> This surely can be done, but I just don't get it.

Not really related to TV. It is a CSS/JS thing:

document.getElementById("element').style.backgroundImage = 'url(a.gif)';

-- 
Dmitry Dulepov
TYPO3 core team
"Sometimes they go bad. No one knows why" (Cameron, TSCC, "Dungeons&Dragons")


More information about the TYPO3-project-templavoila mailing list