Reply to topic
SCRIPT TO ROTATE AD BANNERS
DT


Joined: 12 Feb 2006
Posts: 3
Reply with quote
I'd be real appreciative for some good help here.

Previously, I always used a script to rotate banners that were exclusively GIF files. But now I need a better script to randomly rotate GIF files as well as SWF files. Basically, I want to see a new banner every time a new page is requested.

Thanks so so much!

-- DT
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 548
Location: Harrisburg, PA
Reply with quote
Try Coldfusion. I use the script below to roate pictures on a Page.

Put this at the top of your page
Code:


<!--- INITIATE RANDOM IMAGE SELECTION--->
<cfparam name="imageswap" default="#randrange(1, 5)#">



Put this where you want your banner to appear

Code:

<cfoutput><img src="/Images/Random/#imageswap#.jpg" border="0"></cfoutput>


You'll need to name your banners 1.jpg, 2.jpg, 3.jpg etc.
stuartheenan


Joined: 29 Aug 2006
Posts: 1
Reply with quote
Hi DT - Did this help? I'm looking for a similar solution for banner ads (randomly rotating from .swf to .gif and vv) - Any help gratefully appreciated.
bobclingan
Forum Regular

Joined: 16 Sep 2004
Posts: 271
Location: Abingdon, MD
Reply with quote
I would check out the Harlan Ad Server. Its an Open-Source ColdFusion based ad server that is very flexible and has a lot of great functionality.

http://ray.camdenfamily.com/projects/harlan/

--Bob
SCRIPT TO ROTATE AD BANNERS
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic