[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Refresh random number
Happy Fourth of July to all...
I have the following code which I was hoping would display a random item
image as a banner, one per each category. An image displays just fine,
however it never changes on subsequent page displays. Is there a method to
refresh the random number generator so that a new random selection is made
each time the page is visited?
<tr>
[loop
random=1
search="
fi=products
st=db
sf=category
se=[item-field category]
sf=image
se=[item-field image]
ra=yes
ml=1000
rf=code,include
"]
<td align="center"><img src="items/[item-field image]" width="150">
[/loop]
</tr>
Thanks.
Greg