2 posts
  • Bought between 50 and 99 items
  • Has been a member for 6-7 years
jayrunquist says

I’m looking for a solid ad image rotator where I can just upload photos to a specific directory (ads/125×125) and somehow tie the proper links to the ads and then have the script randomly grab the ads and place them in a specific spot.

94 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
  • United Kingdom
JimmyP says

I think a server-side solution would be better suited to your needs. This type of thing really shouldn’t be done with JavaScript…

15 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 200 and 499 users
  • Sold between 5 000 and 10 000 dollars
spykawg says

Yeah, it wouldn’t be that hard to write a bit of PHP which just gets the images from a directory and then picks one at random – but then that would require a PHP page.

I have written a javascript banner rotator here – http://www.spyka.net/scripts/javascript/simple-banner-rotator

You have to set the banners up in the javascript file and it’ll display one randomly at each location. It also has styling features, refreshes ad locations and more.

It’s also licensed under the GPL

426 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
  • United States
vasilios says

If you’re looking at making this with PHP , you’ll need to store the image URL and the site’s link to make this work as how you described it. :)

by
by
by
by
by
by