Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ramdom image or banner


Salvo

Recommended Posts

Posted

Hi all,

 

I have seen some ramdomise products etc etc. But Is there a way to have a ramdom image or a banner only not from the products DB?

 

I couldn't locate anything in the forum..

 

Thanks in Advace

 

Salvo

Posted

What do you want exactly? A banner / image but NOT from the database?

Don't understand really... but you can use find 1000 different scripts on randomization at HotScripts.com if that helps :)

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

Hi mattice,

 

I know, I could go and try one from there, But if the banner (which is aready installed), could be rondomise ie. have 5 banners and romdomise them, ie on each refresh, could be could be nice.

 

My idea is to have on the header 5 banner which change on each refresh.

 

 

Thanks

 

sal

 

PS: Slowly slowly I am getting there :-)

Posted

haven't checked this but I think it will be as simple as adding 'random' to the SQL query that pulls the banner from the database...

 

Doesn't it do that by default? You would think it would.

 

I never really use banners on my sites so I can't say for sure...

 

PS: Slowly slowly I am getting there

 

It's a process any self-respecting coder has to go through... for the rest of his/her life :)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...