Solved

Remote PopUp Ad Manager

Posted on 2003-10-29
2
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

729 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