2 posts
  • 7 Years of Membership
  • Collector Level 3
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
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 1
+6 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
  • 6 Years of Membership
  • Affiliate Level 5
  • Author Level 4
  • Collector Level 2
+3 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
  • 6 Years of Membership
  • Affiliate Level 2
  • Author Level 4
  • Beta Tester
+4 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