2 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 50+ items on Envato Market
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
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+4 more
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
  • Has been part of the Envato Community for over 5 years
  • Has referred 200+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+1 more
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
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
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