[ic] How to/where to find code to rotate links/pics?
Interchange Fan
interchange-users@icdevgroup.org
Fri Jun 20 15:36:01 2003
-----Original Message-----
> From: interchange-users-admin@icdevgroup.org
> [mailto:interchange-users-admin@icdevgroup.org] On Behalf Of
> Dave LaTourette
> Sent: Friday, June 20, 2003 2:40 PM
> To: interchange-users@icdevgroup.org
> Subject: [ic] How to/where to find code to rotate links/pics?
>
>
> I'd like to know where I could find the code or component
> needed to make a
> rotating image or link for my 4.8.6 IC implementation. I'd
> like to have
> random images with text links show up on the index page. It
> seems like the
> icdevgroup site has a random rotating link already. Where
> could I find the
> code/implementation for this?
> Can anyone point me in the general direction to getting this done?
>
> Thank you,
>
> Dave LaTourette
> www.davesport.com
> ph. 425-888-4444
> fax 425-888-6444
I used this in IC 4.9 (adapted from the foundation demo), but I think it
would work in 4.8:
[loop
random="[control matches 1]"
search="
fi=products
st=db
ra=yes
ml=[control pool 1000]
"]
<IMG SRC="itemgraphics/[loop-field sku][loop-field saletype].jpg"
hspace=0 width=200 vspace=0 BORDER=0>
<br>
Item: [loop-field sku]
<br>
Price: $[loop-field price]
<br>
[loop-description]
[order [loop-code]]Add to Basket[/order]
[/loop]