Solved

Remote PopUp Ad Manager

Posted on 2003-10-29
2
161 Views
Last Modified: 2013-12-20
How can I create a pop up ad manager that will enable me to offer other business owners
the ability to sign up for my service, and have their site broadcast randomly across the
system to every web site that has my pop up ad code on it?

Sincerely,
Brandon Powell
0
Comment
Question by:brandonpowell
2 Comments
 
LVL 4

Accepted Solution

by:
procept earned 500 total points
ID: 9644782
I would suggest setting this up as a pull from the client, not a push from the server.

In your DB store clients and their ads. Then have all clients isnert some JS code on their web pages that requests a page from your server and passes their client ID, something like this:
window.open('http://brandons_server/showAd.cfm?clientID=12345");

on showAd.cfm, select all ads EXCEPT the one of the client that is requesting this page and then randomly choose one:
<cfquery name="qryAds" datasource="myDSN">
SELECT url
FROM tblAds
WHERE clientID != #URL.clientID#
</cfquery>

<cfset randdomize(getTickCount())>
<cfset adnumber=RandRange(1, qryAds.recordCount)>
<cflocation url="#qryAds.url[adnumber]#">

That's the general idea... of course there's a lot to do, make a signup page, maybe even book ads or banner types, etc., etc.

HTH,

Chris
0
 

Author Comment

by:brandonpowell
ID: 9647681
Thank you for your help. This solution works great!

Sincerely,
Brandon Powell
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now