what about assigning a specific banner depending on what style you have chosen?
i.e. I have a light style and a dark style each with their own background color.
You will first need to find the style id's of the styles you wish to have banners on, for this block im asuming your dark style is id 1 and your light style is id 2.
Stick this in the phpinclude_start template:
PHP Code:
// if to find style id, probbly better as a switch but we are only using two styles in this case
if ($style['styleid'] == 1) // light style
{
// run switch for banners
switch(intval(time() / 2) % 3)
{
case 0:
$banner = 'img1.jpg';
$banner_url = 'www.mysite.com';
break;
case 1:
$banner = 'img2.jpg';
$banner_url = 'www.mysite2.com';
break;
case 2:
$banner = 'img3.jpg';
$banner_url = 'www.mysite3.com';
break;
}
}
else
{
if ($style['styleid'] == 2)
{
// run switch for banners
switch(intval(time() / 2) % 3)
{
case 0:
$banner = 'img1.jpg';
$banner_url = 'www.mysite.com';
break;
case 1:
$banner = 'img2.jpg';
$banner_url = 'www.mysite2.com';
break;
case 2:
$banner = 'img3.jpg';
$banner_url = 'www.mysite3.com';
break;
}
}
}
Make sure to chage the urls/image names to the ones you want to use in the switch statement's.
Then use the same html I posted above in your templates.
Also this is a bit dirty but it will get the job done just as good as anything else will.