|
this is the code I am trying to use:
-----
Code:
$bannerrand = rand(1, X);
and then use the number generated in your template whereever you want the banner, for instance in the "header" template. Example; rotating three banners (X=3 in the code above):
Code:
<if condition="$bannerrand == '1'">
<a href="Banner 1 hyperlink"><img src="Banner 1 Image URL" /></a>
<else />
<if condition="$bannerrand == '2'">
<a href="Banner 2 hyperlink"><img src="Banner 2 Image URL" /></a>
<else />
<a href="Banner 3 hyperlink"><img src="Banner 3 Image URL" /></a>
</if>
Anyone know why the thing won't rotate the banners with the code like this and just display them all at the top of the fourms together?
__________________
'16 Focus ST - Daily Duty
'93 mr2 - Track car in progress
|