Gotcha.  Interesting solution- I wouldn't have thought to do it that way.
I'll give it a shot!

Thanks a lot,
Elizabeth 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 1:29 PM
To: CF-Talk
Subject: Re: Rotating banners


i've done this by using time.  it's kind of 2 fold.

Weight 6
ad1,ad2,ad3,ad4

weight 3
ad5, ad6, ad7, ad8

-I'd assign the "weight" of each banner before hand.
-Grab the last digit in the seconds of the current time.
-Display an ad from the weight group that corresponds w/ the time integ
er

i.e.
if the last digit in the time was 6 it would display an ad w/ a weight 
of 6
or higher and if it was 3 it'd display ads from the 3 weight group.

if i wanted an ad to have a chance of being displayed 70% of the time i
'd
set it to weight 3.

make sense?  i would actually like to see a cleaner way of doing but th
at
works.

Savan


______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to