Ralph, on Apr 27 2007, 03:53 AM, said:
Yes, you can use either a Snippet call or a Chunk call to make dynamic changes to your stylesheet... Simply place the call in the template in place of whatever attribute value you wish to control... So, using your example, RobCinOz, you would use something like background-image: url('[!Randomize?folder=path/to/folder1!]');
I tried that and it still doesn't work for me.
Reading the snippet notes, I see that the folder is now set in the snippet. So, I set the $dir variable to the folder where I have these images and tried this
background-image: url('[!Randomize!]');
I still cannot get it to work. Could it be that I'm trying to do it in the header div?
div.header {
width: 520px;
height: 204px;
margin-left: auto;
margin-right: auto;
background-image: url('[!Randomize!]');
margin-bottom: 20px;
}
I'm using a customed "refreshed template". I've attached the style.css file that I've tried.
For the moment, I'm just using this
background-image: url('header2.jpg'); to give me a static image.
style.css 1.79K
1 downloads