Rotating thumbs on main page

Post Reply
filthlab
Posts: 118
Joined: Tue May 30, 2017 6:49 am

Rotating thumbs on main page

Post by filthlab »

Hi,
Is it possible to rotate first 3 or 5 thumbs for each category on mouse over on main page?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Rotating thumbs on main page

Post by admin »

Well, yes and no

it takes some time to select best thumbs for each category , that's why do don't do it on request but "Select best category thumb interval, minutes"

but you can create 3 sets ( Thumb number 1 2 and 3) - so you'll get 3 thumbs for each category


Then you can create 3 arrays in JS like (pseudo code)

<category set=1 .... >
var category_thumb1[category_id] = thumb_url

<category set=2 .... >
var category_thumb2[category_id] = thumb_url


<category set=3 .... >
var category_thumb3[category_id] = thumb_url

ad then rotate thumbs from those arrays
Don't forget to run script update
Post Reply