Solved

Remote PopUp Ad Manager

Posted on 2003-10-29
2
162 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Asp.net Hosting Plan security, reliable, stable 1 72
font type, point size, readability questions 7 102
Font: I need Lato on my Mac 10 184
exchange 2010 turning off 3des ciphers 2 121
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

12 Experts available now in Live!

Get 1:1 Help Now