It may be a bit long winded.... but you could create a small table, (Id and
BannerId), then when a fee ad is added to the system, write a single record
to this table. When a Banner with a weighting of 30% is added, simply
create 30 records with that Banner Id. When selecting a random banner,
pick from this new table. Obviously the people with the higher weighting
are going to have 30x more chance.
Hope this works for you!
Nick
At 19:03 12/04/00 -0700, you wrote:
>Hello All,
>
>I plan to offer banner ads on our Fusioneers.com web site ASAP. I don't
>want to use any of the canned scripts from the developer's exchange for
>various reasons that I don't want to dwell on here.
>
>The way the banner displays are going to work is this....
>
>All Fusioneers.com partners are entitled to a free banner ad on our
>site. People who pay a monthly fee will obviously be given a far greater
>weighting factor than the freebies.
>
>So, our plan was to do something like the following:
>
>All freebie ads combined would account for 1% of the total weighting factor.
>
>We would then sell off weights in blocks of 10%, 20% and 30% of
>impressions until the maximum of a 100% has been reached. The unsold
>weight blocks would display a "Your Ad Here" ad.
>
>So, in other words, when we display the ads, they will be called at
>random, but I want the weights to affect their odds of being displayed.
>
>Hopefully this makes sense. By the way, for the person who figures out
>the best solution, we'll give you a 30% block of the 1st month's banner ad
>weighting absolutely free as our way of saying thank you.
>
>---mark
>
>--------------------------------------------------------------
>Mark Warrick
>Phone: (714) 547-5386
>Efax.com Fax: (801) 730-7289
>Personal Email: [EMAIL PROTECTED]
>Personal URL: http://www.warrick.net
>Business Email: [EMAIL PROTECTED]
>Business URL: http://www.fusioneers.com
>ICQ: 346566
>--------------------------------------------------------------
>
>------------------------------------------------------------------------------
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.