Random product display

General ShopSite user discussion
Post Reply
Jugggler
Posts: 4
Joined: Fri May 01, 2009 7:42 pm

Random product display

Post by Jugggler »

My home page is too static. Is there a way to display one of my products for a few seconds, and then display another (randomly chosen) product every few seconds?
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

ShopSite generated pages are static and don't change once a publish is done. So unless you could prepopulate some javascript to do it there isn't a way.
Jugggler
Posts: 4
Joined: Fri May 01, 2009 7:42 pm

Post by Jugggler »

Thanks Jim. Any ideas on how other site do this? For example, take a look at:

http://www.target.com

They have a rotating set of products that keep the home page from getting too boring. Are they using some fancy java scripts?
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

Viewing the source of their home page there are a lot of scripts being used. I don't know if their pages are static or generated on the fly so it's hard to say how they are doing it.

If you just want to display random product images you use javascript to do that. Google for "random image javascript" and you will find several ways to do it.
Jeff
Posts: 97
Joined: Wed Aug 16, 2006 9:40 am
Location: St. Louis MO

Post by Jeff »

Home page product slide shows are all the rage lately, loading time be damned.
JeremeD
Posts: 60
Joined: Sat Feb 10, 2007 4:20 pm
Location: Athens, GA
Contact:

Post by JeremeD »

Juggler,

Check out JQuery Cycle: http://malsup.com/jquery/cycle/

JQuery Cycle has a lot of different rotation effects and is easy to maintain once you get it set up.

Jereme
SD360.com
Certified ShopSite Designer
[url=http://www.sd360.com/websites/shopsite.html]ShopSite Templates Available Now[/url]
FlaGatorMan
Posts: 30
Joined: Sat Dec 29, 2007 11:24 am

Post by FlaGatorMan »

Target.com is hosted and written by 5000 programmers at Amazon.com. There's your answer on how this is done.
Post Reply